mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
ccmain: Remove unused local variables
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
be7497be97
commit
c714330d2f
@ -1400,7 +1400,6 @@ void Tesseract::ReportXhtFixResult(bool accept_new_word, float new_x_ht,
|
||||
// Returns true if the word was changed.
|
||||
// See the comment in fixxht.cpp for a description of the overall process.
|
||||
bool Tesseract::TrainedXheightFix(WERD_RES *word, BLOCK* block, ROW *row) {
|
||||
bool accept_new_x_ht = false;
|
||||
int original_misfits = CountMisfitTops(word);
|
||||
if (original_misfits == 0)
|
||||
return false;
|
||||
|
@ -831,7 +831,6 @@ namespace tesseract {
|
||||
inT16 Tesseract::fp_eval_word_spacing(WERD_RES_LIST &word_res_list) {
|
||||
WERD_RES_IT word_it(&word_res_list);
|
||||
WERD_RES *word;
|
||||
inT16 word_length;
|
||||
inT16 score = 0;
|
||||
inT16 i;
|
||||
float small_limit = kBlnXHeight * fixsp_small_outlines_size;
|
||||
@ -840,7 +839,6 @@ inT16 Tesseract::fp_eval_word_spacing(WERD_RES_LIST &word_res_list) {
|
||||
word = word_it.data();
|
||||
if (word->rebuild_word == NULL)
|
||||
continue; // Can't handle cube words.
|
||||
word_length = word->reject_map.length();
|
||||
if (word->done ||
|
||||
word->tess_accepted ||
|
||||
word->best_choice->permuter() == SYSTEM_DAWG_PERM ||
|
||||
|
Loading…
Reference in New Issue
Block a user