summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-02-03 14:54:47 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-02-03 14:54:47 +0100
commit61aac4b63bb0fee2f41e936ff7c7b08545ee6001 (patch)
treec58b8d47056dd462d089af01e1a9f259c3f4f248 /searchlib
parente7f6dc60e3630aa7fa893ed252d3a116c8f118f4 (diff)
Remove unused includes.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/diskindex/fusion/fusion_test.cpp19
-rw-r--r--searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp2
2 files changed, 3 insertions, 18 deletions
diff --git a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
index ca303cad99b..245da126dbb 100644
--- a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
+++ b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
@@ -1,26 +1,19 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
-#include <vespa/searchlib/diskindex/checkpointfile.h>
+
#include <vespa/searchlib/diskindex/fusion.h>
#include <vespa/searchlib/diskindex/indexbuilder.h>
#include <vespa/searchlib/diskindex/zcposoccrandread.h>
#include <vespa/searchlib/fef/fieldpositionsiterator.h>
#include <vespa/searchlib/fef/termfieldmatchdata.h>
-#include <vespa/searchlib/fef/termfieldmatchdataarray.h>
#include <vespa/searchlib/index/docbuilder.h>
#include <vespa/searchlib/index/dummyfileheadercontext.h>
-#include <vespa/searchlib/index/indexbuilder.h>
-#include <vespa/searchlib/index/schemautil.h>
#include <vespa/searchlib/btree/btreeroot.hpp>
#include <vespa/searchlib/btree/btreenodeallocator.hpp>
#include <vespa/searchlib/btree/btreenode.hpp>
#include <vespa/searchlib/memoryindex/dictionary.h>
#include <vespa/searchlib/memoryindex/documentinverter.h>
-#include <vespa/searchlib/memoryindex/featurestore.h>
#include <vespa/searchlib/memoryindex/postingiterator.h>
-#include <vespa/searchlib/memoryindex/i_document_insert_listener.h>
#include <vespa/searchlib/diskindex/diskindex.h>
-#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/searchlib/util/filekit.h>
#include <vespa/searchlib/common/sequencedtaskexecutor.h>
@@ -47,18 +40,13 @@ private:
Schema _schema;
const Schema & getSchema() const { return _schema; }
- void
- requireThatFusionIsWorking(const vespalib::string &prefix,
- bool directio,
- bool readmmap);
+ void requireThatFusionIsWorking(const vespalib::string &prefix, bool directio, bool readmmap);
public:
Test();
int Main();
};
-
-namespace
-{
+namespace {
void
myPushDocument(DocumentInverter &inv, Dictionary &d)
@@ -66,7 +54,6 @@ myPushDocument(DocumentInverter &inv, Dictionary &d)
inv.pushDocuments(d, std::shared_ptr<IDestructorCallback>());
}
-
}
vespalib::string
diff --git a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp
index 01d27f429c9..bc9822bf7f0 100644
--- a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp
+++ b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp
@@ -1,6 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/searchlib/diskindex/checkpointfile.h>
#include <vespa/searchlib/diskindex/fusion.h>
#include <vespa/searchlib/diskindex/indexbuilder.h>
#include <vespa/searchlib/diskindex/zcposoccrandread.h>
@@ -30,7 +29,6 @@ using namespace fef;
using namespace index;
using queryeval::SearchIterator;
using document::Document;
-using diskindex::CheckPointFile;
using vespalib::GenerationHandler;
using test::SearchIteratorVerifier;