mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-23 02:24:09 +08:00
Remove unused code
Fixes: 766b7bd620
("Don't drop words with low certainty")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ca0e68f046
commit
0cdcd0f02b
@ -269,14 +269,6 @@ void Tesseract::SearchWords(PointerVector<WERD_RES> *words) {
|
||||
if (stopper_dict == nullptr) {
|
||||
stopper_dict = &getDict();
|
||||
}
|
||||
bool any_nonspace_delimited = false;
|
||||
for (int w = 0; w < words->size(); ++w) {
|
||||
WERD_RES *word = (*words)[w];
|
||||
if (word->best_choice != nullptr && word->best_choice->ContainsAnyNonSpaceDelimited()) {
|
||||
any_nonspace_delimited = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (int w = 0; w < words->size(); ++w) {
|
||||
WERD_RES *word = (*words)[w];
|
||||
if (word->best_choice == nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user