ewah/bitmap.c: delete unused 'bitmap_clear()'
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 15 Jun 2018 18:27:38 +0000 (18:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 17:16:18 +0000 (10:16 -0700)
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>
ewah/bitmap.c
ewah/ewok.h
index 756bdd050e6df9e90bb08edc73617351d1c1f9b1..d61dc6114a852ae2b622421143394cba29076078 100644 (file)
@@ -45,14 +45,6 @@ void bitmap_set(struct bitmap *self, size_t pos)
        self->words[block] |= EWAH_MASK(pos);
 }
 
-void bitmap_clear(struct bitmap *self, size_t pos)
-{
-       size_t block = EWAH_BLOCK(pos);
-
-       if (block < self->word_alloc)
-               self->words[block] &= ~EWAH_MASK(pos);
-}
-
 int bitmap_get(struct bitmap *self, size_t pos)
 {
        size_t block = EWAH_BLOCK(pos);
index 357fd93c84edbe79f9bcb10e2947ed935ac9f0df..8714585333606eff90a291bf573ccad382e41e6c 100644 (file)
@@ -204,7 +204,6 @@ struct bitmap {
 
 struct bitmap *bitmap_new(void);
 void bitmap_set(struct bitmap *self, size_t pos);
-void bitmap_clear(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);