ewah/bitmap.c: delete unused 'bitmap_clear()'

Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Derrick Stolee committed Jun 15, 2018 at 18:27 UTC b36c3134bb1a292aa63b219ad97d3be93caa7015
2 files changed -9
ewah/bitmap.c
-8
@@ -45,14 +45,6 @@ void bitmap_set(struct bitmap *self, size_t pos)
45 self->words[block] |= EWAH_MASK(pos);
46 }
47
48 -void bitmap_clear(struct bitmap *self, size_t pos)
49 -{
50 - size_t block = EWAH_BLOCK(pos);
51 -
52 - if (block < self->word_alloc)
53 - self->words[block] &= ~EWAH_MASK(pos);
54 -}
55 -
48 int bitmap_get(struct bitmap *self, size_t pos)
49 {
50 size_t block = EWAH_BLOCK(pos);
ewah/ewok.h
-1
@@ -204,7 +204,6 @@ struct bitmap {
204
205 struct bitmap *bitmap_new(void);
206 void bitmap_set(struct bitmap *self, size_t pos);
207 -void bitmap_clear(struct bitmap *self, size_t pos);
207 int bitmap_get(struct bitmap *self, size_t pos);
208 void bitmap_reset(struct bitmap *self);
209 void bitmap_free(struct bitmap *self);