Skip to content

Commit

Permalink
repo: remove MutableRepo::rebase_descendants_with_options
Browse files Browse the repository at this point in the history
This function had no callers within the codebase.
  • Loading branch information
bnjmnt4n committed Nov 12, 2024
1 parent cb1e0fb commit 44ec7d0
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions lib/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize> {
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
Expand All @@ -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<usize> {
let roots = self.parent_mapping.keys().cloned().collect_vec();
let mut num_rebased = 0;
Expand Down

0 comments on commit 44ec7d0

Please sign in to comment.