diff --git a/lib/src/repo.rs b/lib/src/repo.rs index 7bcc18bdc7..f10063537a 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -1334,25 +1334,6 @@ impl MutableRepo { self.rebase_descendants_with_options_return_map(settings, Default::default()) } - /// Rebase descendants of the rewritten commits. - /// - /// The descendants of the commits registered in `self.parent_mappings` will - /// be recursively rebased onto the new version of their parents. - /// Returns the number of rebased descendants. - /// - /// This function is similar to [`MutableRepo::rebase_descendants`], but - /// allows for rebase behavior to be customized via [`RebaseOptions`]. - pub fn rebase_descendants_with_options( - &mut self, - settings: &UserSettings, - options: RebaseOptions, - ) -> BackendResult { - let num_rebased = self - .rebase_descendants_with_options_return_map(settings, options)? - .len(); - Ok(num_rebased) - } - /// Rebase descendants of the rewritten commits. /// /// The descendants of the commits registered in `self.parent_mappings` will @@ -1361,7 +1342,7 @@ impl MutableRepo { /// /// All rebased descendant commits will be preserved even if they were /// emptied following the rebase operation. To customize the rebase - /// behavior, use [`MutableRepo::rebase_descendants_with_options`]. + /// behavior, use [`MutableRepo::rebase_descendants_return_map`]. pub fn rebase_descendants(&mut self, settings: &UserSettings) -> BackendResult { let roots = self.parent_mapping.keys().cloned().collect_vec(); let mut num_rebased = 0;