summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-04-24 09:27:37 +0000
committerTor Egge <Tor.Egge@oath.com>2018-04-24 09:27:37 +0000
commit6ebb5d4295aafff8302fbae0675c44818a0b27cc (patch)
treed1a41a0993576ecc6e8ca30f30a2818e64c18b87 /searchlib
parente9e78a8430620f0a2fc17c03bd9c42846acf12bf (diff)
Remove unused gid to lid mapper from imported attribute vector read guard.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.cpp5
-rw-r--r--searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.h4
2 files changed, 1 insertions, 8 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.cpp b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.cpp
index ee540cfc132..a0b23833581 100644
--- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.cpp
@@ -4,8 +4,6 @@
#include "imported_attribute_vector.h"
#include "imported_search_context.h"
#include "reference_attribute.h"
-#include <vespa/searchlib/common/i_gid_to_lid_mapper.h>
-#include <vespa/searchlib/common/i_gid_to_lid_mapper_factory.h>
#include <vespa/searchlib/query/queryterm.h>
namespace search {
@@ -21,8 +19,7 @@ ImportedAttributeVectorReadGuard::ImportedAttributeVectorReadGuard(
_reference_attribute_guard(imported_attribute.getReferenceAttribute()),
_target_attribute_guard(imported_attribute.getTargetAttribute()->makeReadGuard(stableEnumGuard)),
_reference_attribute(*imported_attribute.getReferenceAttribute()),
- _target_attribute(*_target_attribute_guard->attribute()),
- _mapper(_reference_attribute.getGidToLidMapperFactory()->getMapper())
+ _target_attribute(*_target_attribute_guard->attribute())
{
_referencedLids = _reference_attribute.getReferencedLids();
}
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.h b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.h
index 4bbd1dcd580..128778934d3 100644
--- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.h
+++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector_read_guard.h
@@ -8,8 +8,6 @@
#include <vespa/searchcommon/attribute/iattributevector.h>
#include <vespa/searchlib/common/i_document_meta_store_context.h>
-namespace search { class IGidToLidMapper; }
-
namespace search::attribute {
class BitVectorSearchCache;
@@ -40,8 +38,6 @@ private:
const ReferenceAttribute &_reference_attribute;
protected:
const IAttributeVector &_target_attribute;
-private:
- std::unique_ptr<IGidToLidMapper> _mapper;
protected:
uint32_t getReferencedLid(uint32_t lid) const {