diff options
author | Taylor Blau <me@ttaylorr.com> | 2024-08-15 19:31:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-15 20:20:24 +0200 |
commit | 125ee4ae80e3661c3208fc1c8db0c619e5f625d2 (patch) | |
tree | 9d6a990388e8e99884c77fe18081db937395c6c8 /pack-bitmap.h | |
parent | pack-bitmap: initialize `bitmap_writer_init()` with packing_data (diff) | |
download | git-125ee4ae80e3661c3208fc1c8db0c619e5f625d2.tar.xz git-125ee4ae80e3661c3208fc1c8db0c619e5f625d2.zip |
pack-bitmap: drop redundant args from `bitmap_writer_build_type_index()`
The previous commit ensures that the bitmap_writer's "to_pack" field is
initialized early on, so the "to_pack" and "index_nr" arguments to
`bitmap_writer_build_type_index()` are redundant.
Drop them and adjust the callers accordingly.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
-rw-r--r-- | pack-bitmap.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h index ab20d6a0b6..d2529abadc 100644 --- a/pack-bitmap.h +++ b/pack-bitmap.h @@ -129,9 +129,7 @@ void bitmap_writer_show_progress(struct bitmap_writer *writer, int show); void bitmap_writer_set_checksum(struct bitmap_writer *writer, const unsigned char *sha1); void bitmap_writer_build_type_index(struct bitmap_writer *writer, - struct packing_data *to_pack, - struct pack_idx_entry **index, - uint32_t index_nr); + struct pack_idx_entry **index); int bitmap_writer_has_bitmapped_object_id(struct bitmap_writer *writer, const struct object_id *oid); void bitmap_writer_push_commit(struct bitmap_writer *writer, |