Skip to content

Commit b676b73

Browse files
avargitster
authored andcommitted
pack-bitmap-write: remove unused bitmap_reset() function
This function hasn't been used since 449fa5e (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c0cfad commit b676b73

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

ewah/bitmap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,6 @@ int bitmap_is_subset(struct bitmap *self, struct bitmap *other)
216216
return 0;
217217
}
218218

219-
void bitmap_reset(struct bitmap *bitmap)
220-
{
221-
memset(bitmap->words, 0x0, bitmap->word_alloc * sizeof(eword_t));
222-
}
223-
224219
void bitmap_free(struct bitmap *bitmap)
225220
{
226221
if (bitmap == NULL)

ewah/ewok.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ struct bitmap *bitmap_dup(const struct bitmap *src);
177177
void bitmap_set(struct bitmap *self, size_t pos);
178178
void bitmap_unset(struct bitmap *self, size_t pos);
179179
int bitmap_get(struct bitmap *self, size_t pos);
180-
void bitmap_reset(struct bitmap *self);
181180
void bitmap_free(struct bitmap *self);
182181
int bitmap_equals(struct bitmap *self, struct bitmap *other);
183182
int bitmap_is_subset(struct bitmap *self, struct bitmap *other);

0 commit comments

Comments
 (0)