Remove unused method on capture hook
This commit is contained in:
parent
7c8d07df6d
commit
51e9b6e192
1 changed files with 0 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue