From 0cdcd0f02b79b674c06ab0c4b00ec5a97a2ca108 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 9 Oct 2021 10:23:37 +0200 Subject: [PATCH] Remove unused code Fixes: 766b7bd62070 ("Don't drop words with low certainty") Signed-off-by: Stefan Weil --- src/ccmain/linerec.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ccmain/linerec.cpp b/src/ccmain/linerec.cpp index f1deced48..e28262a53 100644 --- a/src/ccmain/linerec.cpp +++ b/src/ccmain/linerec.cpp @@ -269,14 +269,6 @@ void Tesseract::SearchWords(PointerVector *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) {