Skip to content

Commit bed3c7e

Browse files
[ADT] Remove BitVector::next_unset_in_word (#156273)
This patch removes BitVector::next_unset_in_word as the private method doesn't seem to be used anywhere.
1 parent 0ea54be commit bed3c7e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/include/llvm/ADT/BitVector.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -769,11 +769,6 @@ class BitVector {
769769
std::fill(Bits.begin() + NumWords - Count, Bits.begin() + NumWords, 0);
770770
}
771771

772-
int next_unset_in_word(int WordIndex, BitWord Word) const {
773-
unsigned Result = WordIndex * BITWORD_SIZE + llvm::countr_one(Word);
774-
return Result < size() ? Result : -1;
775-
}
776-
777772
unsigned NumBitWords(unsigned S) const {
778773
return (S + BITWORD_SIZE-1) / BITWORD_SIZE;
779774
}

0 commit comments

Comments
 (0)