Skip to content

Commit

Permalink
ewah_bitmap: delete unused 'ewah_not()'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
derrickstolee authored and gitster committed Jun 18, 2018
1 parent 19436fe commit 44301d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
19 changes: 0 additions & 19 deletions ewah/ewah_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,25 +376,6 @@ void ewah_iterator_init(struct ewah_iterator *it, struct ewah_bitmap *parent)
read_new_rlw(it);
}

void ewah_not(struct ewah_bitmap *self)
{
size_t pointer = 0;

while (pointer < self->buffer_size) {
eword_t *word = &self->buffer[pointer];
size_t literals, k;

rlw_xor_run_bit(word);
++pointer;

literals = rlw_get_literal_words(word);
for (k = 0; k < literals; ++k) {
self->buffer[pointer] = ~self->buffer[pointer];
++pointer;
}
}
}

void ewah_xor(
struct ewah_bitmap *ewah_i,
struct ewah_bitmap *ewah_j,
Expand Down
7 changes: 0 additions & 7 deletions ewah/ewok.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ ssize_t ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);

uint32_t ewah_checksum(struct ewah_bitmap *self);

/**
* Logical not (bitwise negation) in-place on the bitmap
*
* This operation is linear time based on the size of the bitmap.
*/
void ewah_not(struct ewah_bitmap *self);

/**
* Call the given callback with the position of every single bit
* that has been set on the bitmap.
Expand Down

0 comments on commit 44301d2

Please sign in to comment.