Remove always-false Tess v3 tests

This commit is contained in:
James R. Barlow
2018-12-30 02:01:05 -08:00
parent 0880b16491
commit 05152a8af9
-3
View File
@@ -671,8 +671,6 @@ def check_options_optimizing(options, log):
def check_options_advanced(options, log):
if options.tesseract_oem and not tesseract.v4():
log.warning("--tesseract-oem requires Tesseract 4.x -- argument ignored")
if options.pdfa_image_compression != 'auto' and options.output_type.startswith(
'pdfa'
):
@@ -680,7 +678,6 @@ def check_options_advanced(options, log):
"--pdfa-image-compression argument has no effect when "
"--output-type is not 'pdfa', 'pdfa-1', or 'pdfa-2'"
)
if tesseract.v4() and (options.user_words or options.user_patterns):
log.warning('Tesseract 4.x ignores --user-words, so this has no effect')