From 202fb533f45618df50e08c846aa134ab82c9fecf Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Mon, 5 Aug 2024 17:56:03 +0900 Subject: [PATCH] merged_tree: remove .diff() method in favor of .diff_stream() It's unlikely we'll need the iterator version of .diff() except for testing the stream implementation. --- lib/src/merged_tree.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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,