]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pack-bitmap-write: remove unused bitmap_reset() function
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 31 Mar 2022 01:45:53 +0000 (03:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2022 17:16:08 +0000 (10:16 -0700)
This function hasn't been used since 449fa5ee069 (pack-bitmap-write:
ignore BITMAP_FLAG_REUSE, 2020-12-08), which was a cleanup commit
intending to get rid of the code around the reusing of bitmaps.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ewah/bitmap.c
ewah/ewok.h

index 38a47c44db4c6cd43bd384890ed414d4665bf456..87d5cc8fa30cd016df5b05378576d7d48a7d76d7 100644 (file)
@@ -216,11 +216,6 @@ int bitmap_is_subset(struct bitmap *self, struct bitmap *other)
        return 0;
 }
 
-void bitmap_reset(struct bitmap *bitmap)
-{
-       memset(bitmap->words, 0x0, bitmap->word_alloc * sizeof(eword_t));
-}
-
 void bitmap_free(struct bitmap *bitmap)
 {
        if (bitmap == NULL)
index 66920965da19ab4a38db18d1b18e0f5fbaa4776f..7eb8b9b63013daa70c91687108307d38a9eb1e09 100644 (file)
@@ -177,7 +177,6 @@ struct bitmap *bitmap_dup(const struct bitmap *src);
 void bitmap_set(struct bitmap *self, size_t pos);
 void bitmap_unset(struct bitmap *self, size_t pos);
 int bitmap_get(struct bitmap *self, size_t pos);
-void bitmap_reset(struct bitmap *self);
 void bitmap_free(struct bitmap *self);
 int bitmap_equals(struct bitmap *self, struct bitmap *other);
 int bitmap_is_subset(struct bitmap *self, struct bitmap *other);