Merge pull request #1557 from stweil/cid

Fix CID 1386109 (Logically dead code)
This commit is contained in:
zdenop 2018-05-03 19:20:01 +02:00 committed by GitHub
commit 7dea671774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ enum ClassifierName {
CN_COUNT
};
const char* names[] = {"pruner", "full", nullptr};
static const char* names[] = {"pruner", "full"};
static tesseract::ShapeClassifier* InitializeClassifier(
const char* classifer_name, const UNICHARSET& unicharset,
@ -83,9 +83,6 @@ static tesseract::ShapeClassifier* InitializeClassifier(
shape_classifier = new tesseract::TessClassifier(true, classify);
} else if (classifier == CN_FULL) {
shape_classifier = new tesseract::TessClassifier(false, classify);
} else {
fprintf(stderr, "%s tester not yet implemented\n", classifer_name);
return nullptr;
}
tprintf("Testing classifier %s:\n", classifer_name);
return shape_classifier;