diff --git a/lib/src/merged_tree.rs b/lib/src/merged_tree.rs index 1fa1efe8b1..a64b631a9d 100644 --- a/lib/src/merged_tree.rs +++ b/lib/src/merged_tree.rs @@ -308,19 +308,10 @@ impl MergedTree { TreeEntriesIterator::new(self.clone(), matcher) } - /// Iterate over the differences between this tree and another tree. + /// Stream of the differences between this tree and another tree. /// /// The files in a removed tree will be returned before a file that replaces /// it. - pub fn diff<'matcher>( - &self, - other: &MergedTree, - matcher: &'matcher dyn Matcher, - ) -> TreeDiffIterator<'matcher> { - TreeDiffIterator::new(self.clone(), other.clone(), matcher) - } - - /// Stream of the differences between this tree and another tree. pub fn diff_stream<'matcher>( &self, other: &MergedTree,