From 334985505994a3fa664be9623f4afc9f2854a9bf Mon Sep 17 00:00:00 2001 From: kelson42 Date: Wed, 2 Apr 2014 16:26:09 +0200 Subject: [PATCH] + Remove last traces of CLUCENE backend support --- src/indexer/kiwix-index.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/indexer/kiwix-index.cpp b/src/indexer/kiwix-index.cpp index 85c1ce5..4f2035e 100644 --- a/src/indexer/kiwix-index.cpp +++ b/src/indexer/kiwix-index.cpp @@ -26,8 +26,6 @@ #include #endif -enum supportedBackend { XAPIAN }; - void usage() { cout << "Usage: kiwix-index [--verbose] ZIM_PATH INDEX_PATH" << endl; exit(1); @@ -41,7 +39,6 @@ int main(int argc, char **argv) { bool verboseFlag = false; int option_index = 0; int c = 0; - supportedBackend backend = XAPIAN; kiwix::Indexer *indexer = NULL; @@ -50,24 +47,16 @@ int main(int argc, char **argv) { static struct option long_options[] = { {"verbose", no_argument, 0, 'v'}, - {"backend", required_argument, 0, 'b'}, {0, 0, 0, 0} }; if (c != -1) { - c = getopt_long(argc, argv, "vb:", long_options, &option_index); + c = getopt_long(argc, argv, "v", long_options, &option_index); switch (c) { case 'v': verboseFlag = true; break; - case 'b': - if (!strcmp(optarg, "xapian")) { - backend = XAPIAN; - } else { - usage(); - } - break; } } else { if (optind < argc) {