summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-06-19 10:18:08 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-06-19 10:18:08 +0000
commitb8e30961b8c5f140823bd2828f87ab9fd906a1d7 (patch)
treefcb7752c120fc0d85995c3bd7cb056d640c7d51d /searchlib
parent90671fd176dda18c44f26c77a396683da2b96b47 (diff)
readjust to a world without ErrorValue
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);
}
}