diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-23 13:40:13 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-23 13:40:13 +0000 |
commit | 5d40e82b1c38ecdf0cb2ab54521530e152e33659 (patch) | |
tree | 25b316a870f8ae83c1f4b941b31a61fd0f43a3e7 /searchcorespi | |
parent | 3c8533f0ee5cc3abff0cc1bfc88fd00df0624921 (diff) |
Various readability and code cleanup. closure -> lambda
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp | 3 | ||||
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp index a88b5eed414..1b07f2b2c4f 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp +++ b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp @@ -1,13 +1,10 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "indexflushtarget.h" -#include <vespa/vespalib/util/closuretask.h> #include <vespa/log/log.h> LOG_SETUP(".searchcorespi.index.indexflushtarget"); -using vespalib::makeClosure; - namespace searchcorespi::index { IndexFlushTarget::IndexFlushTarget(IndexMaintainer &indexMaintainer) diff --git a/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp b/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp index 98e44ff8e44..f7abcedbf89 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp +++ b/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp @@ -1,13 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "warmupindexcollection.h" #include "idiskindex.h" -#include <vespa/vespalib/util/closuretask.h> #include <vespa/searchlib/fef/matchdatalayout.h> #include <vespa/searchlib/query/tree/termnodes.h> #include <vespa/vespalib/stllike/hash_map.hpp> #include <vespa/vespalib/stllike/hash_set.h> -#include <vespa/log/log.h> +#include <vespa/log/log.h> LOG_SETUP(".searchcorespi.index.warmupindexcollection"); namespace searchcorespi { @@ -19,8 +18,6 @@ using search::query::StringBase; using search::queryeval::Blueprint; using search::queryeval::ISourceSelector; using search::queryeval::SearchIterator; -using vespalib::makeClosure; -using vespalib::makeTask; using TermMap = vespalib::hash_set<vespalib::string>; class FieldTermMap : public vespalib::hash_map<uint32_t, TermMap> |