зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
1140bf01ec
Коммит
b36c3134bb
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче