summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-08-26 12:41:25 +0000
committerArne Juul <arnej@verizonmedia.com>2020-08-26 12:41:25 +0000
commitd8e07035c7cfb9fa8de53303f04335e373b8273c (patch)
tree7bb507b171ca7c983940b4aab86bcbd5925f79f9
parent56976d1d8bb05f18c68d62e54877086a00794626 (diff)
GC unused code
-rw-r--r--searchlib/src/vespa/searchlib/common/documentlocations.cpp9
-rw-r--r--searchlib/src/vespa/searchlib/common/documentlocations.h8
2 files changed, 3 insertions, 14 deletions
diff --git a/searchlib/src/vespa/searchlib/common/documentlocations.cpp b/searchlib/src/vespa/searchlib/common/documentlocations.cpp
index b8f05581b41..3b2f6e58929 100644
--- a/searchlib/src/vespa/searchlib/common/documentlocations.cpp
+++ b/searchlib/src/vespa/searchlib/common/documentlocations.cpp
@@ -8,19 +8,12 @@ namespace search {
namespace common {
DocumentLocations::DocumentLocations()
- : _vec_guard(new AttributeGuard),
- _vec(NULL)
+ : _vec(NULL)
{
}
DocumentLocations::~DocumentLocations() { }
-void
-DocumentLocations::setVecGuard(std::unique_ptr<search::AttributeGuard> guard) {
- _vec_guard = std::move(guard);
- setVec(*_vec_guard.get()->get());
-}
-
DocumentLocations::DocumentLocations(DocumentLocations &&) = default;
DocumentLocations & DocumentLocations::operator = (DocumentLocations &&) = default;
diff --git a/searchlib/src/vespa/searchlib/common/documentlocations.h b/searchlib/src/vespa/searchlib/common/documentlocations.h
index 51d5be76e65..d637c12ac84 100644
--- a/searchlib/src/vespa/searchlib/common/documentlocations.h
+++ b/searchlib/src/vespa/searchlib/common/documentlocations.h
@@ -6,8 +6,8 @@
namespace search {
- namespace attribute { class IAttributeVector; }
- class AttributeGuard;
+namespace attribute { class IAttributeVector; }
+class AttributeGuard;
namespace common {
@@ -19,9 +19,7 @@ namespace common {
*/
class DocumentLocations
{
-
private:
- std::unique_ptr<search::AttributeGuard> _vec_guard;
const search::attribute::IAttributeVector *_vec;
public:
@@ -30,8 +28,6 @@ public:
DocumentLocations();
virtual ~DocumentLocations();
- void setVecGuard(std::unique_ptr<search::AttributeGuard> guard);
-
void setVec(const search::attribute::IAttributeVector &vec) {
_vec = &vec;
}