summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-06-15 18:27:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-18 17:16:18 (GMT)
commitb36c3134bb1a292aa63b219ad97d3be93caa7015 (patch)
tree86acf8f41f697e1368719f1c67e686e8dd3ff4f0
parent1140bf01ecf4a49c32b3c385dd782cd183e730af (diff)
downloadgit-b36c3134bb1a292aa63b219ad97d3be93caa7015.zip
git-b36c3134bb1a292aa63b219ad97d3be93caa7015.tar.gz
git-b36c3134bb1a292aa63b219ad97d3be93caa7015.tar.bz2
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>
-rw-r--r--ewah/bitmap.c8
-rw-r--r--ewah/ewok.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/ewah/bitmap.c b/ewah/bitmap.c
index 756bdd0..d61dc61 100644
--- a/ewah/bitmap.c
+++ b/ewah/bitmap.c
@@ -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);
diff --git a/ewah/ewok.h b/ewah/ewok.h
index 357fd93..8714585 100644
--- a/ewah/ewok.h
+++ b/ewah/ewok.h
@@ -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);