mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 15:39:04 +08:00
Merge pull request #1557 from stweil/cid
Fix CID 1386109 (Logically dead code)
This commit is contained in:
commit
7dea671774
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user