Skip to content

Commit 77a5f26

Browse files
committed
Remove unused config variable tessedit_module_name
It was only defined for Windows builds. Use also false instead of 0 to set the default value of two boolean config variables. Signed-off-by: Stefan Weil <[email protected]>
1 parent c150b98 commit 77a5f26

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/ccutil/ccutil.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
namespace tesseract {
1616
CCUtil::CCUtil() :
1717
params_(),
18-
#ifdef _WIN32
19-
STRING_INIT_MEMBER(tessedit_module_name, WINDLLNAME,
20-
"Module colocated with tessdata dir", &params_),
21-
#endif
2218
INT_INIT_MEMBER(ambigs_debug_level, 0, "Debug level for unichar ambiguities",
2319
&params_),
24-
BOOL_MEMBER(use_definite_ambigs_for_classifier, 0, "Use definite"
20+
BOOL_MEMBER(use_definite_ambigs_for_classifier, false, "Use definite"
2521
" ambiguities when running character classifier", &params_),
26-
BOOL_MEMBER(use_ambigs_for_adaption, 0, "Use ambigs for deciding"
22+
BOOL_MEMBER(use_ambigs_for_adaption, false, "Use ambigs for deciding"
2723
" whether to adapt to a character", &params_) {
2824
}
2925

src/ccutil/ccutil.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ class CCUtil {
7979
// Member parameters.
8080
// These have to be declared and initialized after params_ member, since
8181
// params_ should be initialized before parameters are added to it.
82-
#ifdef _WIN32
83-
STRING_VAR_H(tessedit_module_name, WINDLLNAME,
84-
"Module colocated with tessdata dir");
85-
#endif
8682
INT_VAR_H(ambigs_debug_level, 0, "Debug level for unichar ambiguities");
87-
BOOL_VAR_H(use_definite_ambigs_for_classifier, 0,
83+
BOOL_VAR_H(use_definite_ambigs_for_classifier, false,
8884
"Use definite ambiguities when running character classifier");
89-
BOOL_VAR_H(use_ambigs_for_adaption, 0,
85+
BOOL_VAR_H(use_ambigs_for_adaption, false,
9086
"Use ambigs for deciding whether to adapt to a character");
9187
};
9288

0 commit comments

Comments
 (0)