diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-06-19 23:51:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-21 18:39:48 +0200 |
commit | c806278e0c7c0e0de5b32d013676326221b86c35 (patch) | |
tree | accfda366965d71f240ea4a12e22f9f07d16f4f1 /ewah/ewah_bitmap.c | |
parent | ewah: drop ewah_serialize_native function (diff) | |
download | git-c806278e0c7c0e0de5b32d013676326221b86c35.tar.xz git-c806278e0c7c0e0de5b32d013676326221b86c35.zip |
ewah: delete unused 'rlwit_discharge_empty()'
Complete the removal of unused 'ewah bitmap' code by removing the now
unused 'rlwit_discharge_empty()' function. Also, the 'ewah_clear()'
function can now be made a file-scope static symbol.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewah_bitmap.c')
-rw-r--r-- | ewah/ewah_bitmap.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ewah/ewah_bitmap.c b/ewah/ewah_bitmap.c index 017c677f98..d59b1afe3d 100644 --- a/ewah/ewah_bitmap.c +++ b/ewah/ewah_bitmap.c @@ -276,6 +276,18 @@ void ewah_each_bit(struct ewah_bitmap *self, void (*callback)(size_t, void*), vo } } +/** + * Clear all the bits in the bitmap. Does not free or resize + * memory. + */ +static void ewah_clear(struct ewah_bitmap *self) +{ + self->buffer_size = 1; + self->buffer[0] = 0; + self->bit_size = 0; + self->rlw = self->buffer; +} + struct ewah_bitmap *ewah_new(void) { struct ewah_bitmap *self; @@ -288,14 +300,6 @@ struct ewah_bitmap *ewah_new(void) return self; } -void ewah_clear(struct ewah_bitmap *self) -{ - self->buffer_size = 1; - self->buffer[0] = 0; - self->bit_size = 0; - self->rlw = self->buffer; -} - void ewah_free(struct ewah_bitmap *self) { if (!self) |