Skip to content

Commit

Permalink
api: Remove unused variables
Browse files Browse the repository at this point in the history
This fixes a compiler warning:

api/baseapi.cpp:1621:17: warning:
 variable 'font_name' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 8, 2017
1 parent dcc8666 commit 7b33dad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1616,13 +1616,7 @@ char* TessBaseAPI::GetTSVText(int page_number) {

// Now, process the word...
int left, top, right, bottom;
bool bold, italic, underlined, monospace, serif, smallcaps;
int pointsize, font_id;
const char* font_name;
res_it->BoundingBox(RIL_WORD, &left, &top, &right, &bottom);
font_name =
res_it->WordFontAttributes(&bold, &italic, &underlined, &monospace,
&serif, &smallcaps, &pointsize, &font_id);
word_num++;
tsv_str.add_str_int("5\t", page_num); // level 5 - word
tsv_str.add_str_int("\t", block_num);
Expand Down

0 comments on commit 7b33dad

Please sign in to comment.