pack-bitmap-write: remove unused bitmap_reset() function
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>
Ævar Arnfjörð Bjarmason committed
Mar 31, 2022 at 03:45 UTC
b676b73232fab679502f7c77e60f0852b4f2a09e
2 files changed
-6
ewah/bitmap.c
-5
@@ -216,11 +216,6 @@ int bitmap_is_subset(struct bitmap *self, struct bitmap *other)
216
return 0;
217
}
218
219
-void bitmap_reset(struct bitmap *bitmap)
220
-{
221
- memset(bitmap->words, 0x0, bitmap->word_alloc * sizeof(eword_t));
222
-}
223
-
219
void bitmap_free(struct bitmap *bitmap)
220
{
221
if (bitmap == NULL)
ewah/ewok.h
-1
@@ -177,7 +177,6 @@ struct bitmap *bitmap_dup(const struct bitmap *src);
177
void bitmap_set(struct bitmap *self, size_t pos);
178
void bitmap_unset(struct bitmap *self, size_t pos);
179
int bitmap_get(struct bitmap *self, size_t pos);
180
-void bitmap_reset(struct bitmap *self);
180
void bitmap_free(struct bitmap *self);
181
int bitmap_equals(struct bitmap *self, struct bitmap *other);
182
int bitmap_is_subset(struct bitmap *self, struct bitmap *other);