Skip to content

Commit ac17663

Browse files
committed
Fix CID 1395113 ('Constant' variable guards dead code)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 7e9dfef commit ac17663

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/textord/wordseg.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ int32_t row_words2( //compute space size
345345
FCOORD rotation, //for drawing
346346
bool testing_on //for debug
347347
) {
348-
bool testing_row; //contains testpt
349348
bool prev_valid; //if decent size
350349
bool this_valid; //current blob big enough
351350
int32_t prev_x; //end of prev blob
@@ -375,7 +374,7 @@ int32_t row_words2( //compute space size
375374
// tprintf("Row smooth factor=%d\n",smooth_factor);
376375
prev_valid = false;
377376
prev_x = -INT16_MAX;
378-
testing_row = false;
377+
const bool testing_row = false;
379378
//min blob size
380379
min_width = (int32_t) block->pr_space;
381380
total_count = 0;

0 commit comments

Comments
 (0)