summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-09-24 14:15:28 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-09-24 14:16:00 +0200
commitd2ab2f317995b96f8ae53edd034d71cb1d284ae1 (patch)
tree37cf42cb5e5781e099d4a4ee6e4752fba80dab7b /searchlib
parent11ab4237312e3f52fac8f5f82553ee2598ac5eed (diff)
Remove dead method search::PostingChange::apply.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/postingchange.cpp30
-rw-r--r--searchlib/src/vespa/searchlib/attribute/postingchange.h1
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