summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne H Juul <arnej27959@users.noreply.github.com>2019-06-20 08:40:26 +0200
committerGitHub <noreply@github.com>2019-06-20 08:40:26 +0200
commitfbfa616f345941455991819f7916320d15392204 (patch)
tree9738c4d3d47f4461d5b940df7fa011eac2c00e9f /searchlib
parent28f7f7932fc91516276a7468c73325a5a2dafe60 (diff)
parentb8e30961b8c5f140823bd2828f87ab9fd906a1d7 (diff)
Merge pull request #9840 from vespa-engine/havardpe/remove-error-value
Havardpe/remove error value
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/fef/test/indexenvironment.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/test/indexenvironment.cpp b/searchlib/src/vespa/searchlib/fef/test/indexenvironment.cpp
index 755245438f2..e998e4d18bd 100644
--- a/searchlib/src/vespa/searchlib/fef/test/indexenvironment.cpp
+++ b/searchlib/src/vespa/searchlib/fef/test/indexenvironment.cpp
@@ -7,14 +7,6 @@
namespace search::fef::test {
using vespalib::eval::ValueType;
-using vespalib::eval::ErrorValue;
-
-namespace {
-
-IndexEnvironment::Constant notFoundError(ValueType::error_type(),
- std::make_unique<ErrorValue>());
-
-}
IndexEnvironment::IndexEnvironment() = default;
@@ -46,7 +38,7 @@ IndexEnvironment::getConstantValue(const vespalib::string &name) const
if (it != _constants.end()) {
return std::make_unique<ConstantRef>(it->second);
} else {
- return std::make_unique<ConstantRef>(notFoundError);
+ return vespalib::eval::ConstantValue::UP(nullptr);
}
}