pack-bitmap: drop unused max_bitmaps
parameter
The `max_bitmaps` parameter in `bitmap_writer_select_commits()` was introduced back in7cc8f97108
(pack-objects: implement bitmap writing, 2013-12-21), making it original to the bitmap implementation in Git itself. When that patch was merged via0f9e62e084
(Merge branch 'jk/pack-bitmap', 2014-02-27), its sole caller in builtin/pack-objects.c passed a value of "-1" for `max_bitmaps`, indicating no limit. Since then, the only other caller (in midx.c, added viac528e17966
(pack-bitmap: write multi-pack bitmaps, 2021-08-31)) also uses a value of "-1" for `max_bitmaps`. Since no callers have needed a finite limit for the `max_bitmaps` parameter in the nearly decade that has passed since0f9e62e084
, let's remove the parameter and any dead pieces of code connected to it. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
07647c92ff
commit
9675b06917
@ -1364,8 +1364,7 @@ static void write_pack_file(void)
|
||||
progress);
|
||||
bitmap_writer_select_commits(&bitmap_writer,
|
||||
indexed_commits,
|
||||
indexed_commits_nr,
|
||||
-1);
|
||||
indexed_commits_nr);
|
||||
if (bitmap_writer_build(&bitmap_writer, &to_pack) < 0)
|
||||
die(_("failed to write bitmap index"));
|
||||
bitmap_writer_finish(&bitmap_writer,
|
||||
|
Reference in New Issue
Block a user