From 47564945046f8cda634ee72c5b3838c1b0aa4582 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 17 Aug 2024 03:29:37 -0400 Subject: pack-bitmap: drop unused parameters from select_pseudo_merges() We take the array of indexed_commits (and its length), but there's no need. The selection is based on ref reachability, not the linearized set of commits we're packing. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- pseudo-merge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pseudo-merge.c') diff --git a/pseudo-merge.c b/pseudo-merge.c index 1d7f5381a4..c952a7cba9 100644 --- a/pseudo-merge.c +++ b/pseudo-merge.c @@ -425,8 +425,7 @@ static void sort_pseudo_merge_matches(struct pseudo_merge_matches *matches) QSORT(matches->unstable, matches->unstable_nr, commit_date_cmp); } -void select_pseudo_merges(struct bitmap_writer *writer, - struct commit **commits, size_t commits_nr) +void select_pseudo_merges(struct bitmap_writer *writer) { struct progress *progress = NULL; uint32_t i; -- cgit v1.2.3