]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pack-bitmap: drop unused `reuse_objects`
authorTaylor Blau <me@ttaylorr.com>
Sat, 27 Jan 2024 04:00:50 +0000 (23:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jan 2024 17:26:17 +0000 (09:26 -0800)
This variable is no longer used for doing verbatim pack-reuse (or
anywhere within pack-bitmap.c) since d2ea031046 (pack-bitmap: don't rely
on bitmap_git->reuse_objects, 2019-12-18).

Remove it to avoid an unused struct member.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c

index 0260890341b5a36af3ee1ec248282e2f1f1ebc53..c88dd35bdc57f7cb2dcda13f14849b4c15e159c2 100644 (file)
@@ -51,13 +51,6 @@ struct bitmap_index {
        struct packed_git *pack;
        struct multi_pack_index *midx;
 
-       /*
-        * Mark the first `reuse_objects` in the packfile as reused:
-        * they will be sent as-is without using them for repacking
-        * calculations
-        */
-       uint32_t reuse_objects;
-
        /* mmapped buffer of the whole bitmap index */
        unsigned char *map;
        size_t map_size; /* size of the mmaped buffer */