diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-09-25 11:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 11:17:02 +0200 |
commit | 7f3bc57b62d4a5b105d5a51c0e2e756d2af450d6 (patch) | |
tree | a8cd5ee631717a67f9445d52e02870d5bc30459f /searchlib | |
parent | 3800cdc8f1200ede667229eceef02792b060194a (diff) | |
parent | d2ab2f317995b96f8ae53edd034d71cb1d284ae1 (diff) |
Merge pull request #10787 from vespa-engine/toregge/remove-dead-posting-change-method
Remove dead method search::PostingChange::apply
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/postingchange.cpp | 30 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/postingchange.h | 1 |
2 files changed, 0 insertions, 31 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/postingchange.cpp b/searchlib/src/vespa/searchlib/attribute/postingchange.cpp index a98c030bcee..066b391f514 100644 --- a/searchlib/src/vespa/searchlib/attribute/postingchange.cpp +++ b/searchlib/src/vespa/searchlib/attribute/postingchange.cpp @@ -130,36 +130,6 @@ PostingChange<P>::PostingChange() = default; template <typename P> PostingChange<P>::~PostingChange() = default; -template <typename P> -void -PostingChange<P>::apply(GrowableBitVector &bv) -{ - P *a = &_additions[0]; - P *ae = &_additions[0] + _additions.size(); - uint32_t *r = &_removals[0]; - uint32_t *re = &_removals[0] + _removals.size(); - - while (a != ae || r != re) { - if (r != re && (a == ae || *r < a->_key)) { - // remove - assert(*r < bv.size()); - bv.slowClearBit(*r); - ++r; - } else { - if (r != re && !(a->_key < *r)) { - // update or add - assert(a->_key < bv.size()); - bv.slowSetBit(a->_key); - ++r; - } else { - assert(a->_key < bv.size()); - bv.slowSetBit(a->_key); - } - ++a; - } - } -} - template <typename WeightedIndex> class ActualChangeComputer { public: diff --git a/searchlib/src/vespa/searchlib/attribute/postingchange.h b/searchlib/src/vespa/searchlib/attribute/postingchange.h index 569fbfd6517..26b004270bf 100644 --- a/searchlib/src/vespa/searchlib/attribute/postingchange.h +++ b/searchlib/src/vespa/searchlib/attribute/postingchange.h @@ -43,7 +43,6 @@ public: * posting list tree doesn't support duplicate entries. */ void removeDups(); - void apply(GrowableBitVector &bv); }; class EnumIndexMapper |