+ Remove last traces of CLUCENE backend support

This commit is contained in:
kelson42 2014-04-02 16:26:09 +02:00
parent 9a00b7c1d4
commit 3349855059

View File

@ -26,8 +26,6 @@
#include <unistd.h>
#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) {