ewah_bitmap: delete unused 'ewah_not()'

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 44301d2b76bd32074fcdbf97c51264ca2149c513
2 files changed -26
ewah/ewah_bitmap.c
-19
@@ -376,25 +376,6 @@ void ewah_iterator_init(struct ewah_iterator *it, struct ewah_bitmap *parent)
376 read_new_rlw(it);
377 }
378
379 -void ewah_not(struct ewah_bitmap *self)
380 -{
381 - size_t pointer = 0;
382 -
383 - while (pointer < self->buffer_size) {
384 - eword_t *word = &self->buffer[pointer];
385 - size_t literals, k;
386 -
387 - rlw_xor_run_bit(word);
388 - ++pointer;
389 -
390 - literals = rlw_get_literal_words(word);
391 - for (k = 0; k < literals; ++k) {
392 - self->buffer[pointer] = ~self->buffer[pointer];
393 - ++pointer;
394 - }
395 - }
396 -}
397 -
379 void ewah_xor(
380 struct ewah_bitmap *ewah_i,
381 struct ewah_bitmap *ewah_j,
ewah/ewok.h
-7
@@ -95,13 +95,6 @@ ssize_t ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);
95
96 uint32_t ewah_checksum(struct ewah_bitmap *self);
97
98 -/**
99 - * Logical not (bitwise negation) in-place on the bitmap
100 - *
101 - * This operation is linear time based on the size of the bitmap.
102 - */
103 -void ewah_not(struct ewah_bitmap *self);
104 -
98 /**
99 * Call the given callback with the position of every single bit
100 * that has been set on the bitmap.