From 51e9b6e192ac7331afb7ff8f9a28391882fdee6d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 17 Jan 2021 23:43:54 +0100 Subject: [PATCH] Remove unused method on capture hook --- src/algorithms/hook.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/algorithms/hook.rs b/src/algorithms/hook.rs index fbbbab9..ec0132d 100644 --- a/src/algorithms/hook.rs +++ b/src/algorithms/hook.rs @@ -1,5 +1,4 @@ use std::convert::Infallible; -use std::mem; /// A trait for reacting to an edit script from the "old" version to /// the "new" version. @@ -143,14 +142,6 @@ impl CaptureHook { CaptureHook::default() } - /// Removes all replace operations. - pub fn resolve_replace(&mut self) { - self.0 = mem::replace(&mut self.0, Vec::new()) - .into_iter() - .filter_map(|op| Some(op)) - .collect(); - } - /// Converts the capture hook into a vector. pub fn into_vec(self) -> Vec { self.0