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