diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 963157a..ebb70a7 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -503,12 +503,10 @@ int main(int argc, char **argv) { } else if (!indexPath.empty()) { vector booksIds = libraryManager.getBooksIds(); kiwix::supportedIndexType indexType = kiwix::UNKNOWN; - bool hasSearchIndex = false; /* Try with the XapianSearcher */ try { new kiwix::XapianSearcher(indexPath); - hasSearchIndex = true; indexType = kiwix::XAPIAN; } catch (...) { }