Skip to content

Commit ee201e1

Browse files
stweilzdenop
authored andcommitted
Remove deprecated support for -psm argument (#1419)
It was replaced by --psm and deprecated in commit 92d981b. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent afcd4cb commit ee201e1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

api/tesseractmain.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,6 @@ static void ParseArgs(const int argc, char** argv, const char** lang,
320320
} else if (strcmp(argv[i], "--list-langs") == 0) {
321321
noocr = true;
322322
*list_langs = true;
323-
} else if (strcmp(argv[i], "-psm") == 0 && i + 1 < argc) {
324-
// The parameter -psm is deprecated and was replaced by --psm.
325-
// It is still supported for compatibility reasons.
326-
checkArgValues(atoi(argv[i+1]), "PSM", tesseract::PSM_COUNT);
327-
*pagesegmode = static_cast<tesseract::PageSegMode>(atoi(argv[i + 1]));
328-
++i;
329323
} else if (strcmp(argv[i], "--psm") == 0 && i + 1 < argc) {
330324
checkArgValues(atoi(argv[i+1]), "PSM", tesseract::PSM_COUNT);
331325
*pagesegmode = static_cast<tesseract::PageSegMode>(atoi(argv[i + 1]));

0 commit comments

Comments
 (0)