Skip to content

Commit

Permalink
tesseractmain: Remove unneeded duplicate code
Browse files Browse the repository at this point in the history
The --list-langs option is already handled by other code.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 1, 2018
1 parent d4ed0f8 commit 6f7206f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ static void ParseArgs(const int argc, char** argv, const char** lang,

*arg_i = i;

if (argc == 2 && strcmp(argv[1], "--list-langs") == 0) {
*list_langs = true;
noocr = true;
}

if (*outputbase == nullptr && noocr == false) {
PrintHelpMessage(argv[0]);
exit(1);
Expand Down

0 comments on commit 6f7206f

Please sign in to comment.