Remove unused method on capture hook

This commit is contained in:
Armin Ronacher 2021-01-17 23:43:54 +01:00
parent 7c8d07df6d
commit 51e9b6e192

View file

@ -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<DiffOp> {
self.0