Skip to content

Commit 6f7206f

Browse files
committed
tesseractmain: Remove unneeded duplicate code
The --list-langs option is already handled by other code. Signed-off-by: Stefan Weil <[email protected]>
1 parent d4ed0f8 commit 6f7206f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/api/tesseractmain.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,6 @@ static void ParseArgs(const int argc, char** argv, const char** lang,
349349

350350
*arg_i = i;
351351

352-
if (argc == 2 && strcmp(argv[1], "--list-langs") == 0) {
353-
*list_langs = true;
354-
noocr = true;
355-
}
356-
357352
if (*outputbase == nullptr && noocr == false) {
358353
PrintHelpMessage(argv[0]);
359354
exit(1);

0 commit comments

Comments
 (0)