Skip to content

Commit

Permalink
Remove unused config variable tessedit_module_name
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stweil committed Mar 31, 2019
1 parent c150b98 commit 77a5f26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions src/ccutil/ccutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
namespace tesseract {
CCUtil::CCUtil() :
params_(),
#ifdef _WIN32
STRING_INIT_MEMBER(tessedit_module_name, WINDLLNAME,
"Module colocated with tessdata dir", &params_),
#endif
INT_INIT_MEMBER(ambigs_debug_level, 0, "Debug level for unichar ambiguities",
&params_),
BOOL_MEMBER(use_definite_ambigs_for_classifier, 0, "Use definite"
BOOL_MEMBER(use_definite_ambigs_for_classifier, false, "Use definite"
" ambiguities when running character classifier", &params_),
BOOL_MEMBER(use_ambigs_for_adaption, 0, "Use ambigs for deciding"
BOOL_MEMBER(use_ambigs_for_adaption, false, "Use ambigs for deciding"
" whether to adapt to a character", &params_) {
}

Expand Down
8 changes: 2 additions & 6 deletions src/ccutil/ccutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,10 @@ class CCUtil {
// Member parameters.
// These have to be declared and initialized after params_ member, since
// params_ should be initialized before parameters are added to it.
#ifdef _WIN32
STRING_VAR_H(tessedit_module_name, WINDLLNAME,
"Module colocated with tessdata dir");
#endif
INT_VAR_H(ambigs_debug_level, 0, "Debug level for unichar ambiguities");
BOOL_VAR_H(use_definite_ambigs_for_classifier, 0,
BOOL_VAR_H(use_definite_ambigs_for_classifier, false,
"Use definite ambiguities when running character classifier");
BOOL_VAR_H(use_ambigs_for_adaption, 0,
BOOL_VAR_H(use_ambigs_for_adaption, false,
"Use ambigs for deciding whether to adapt to a character");
};

Expand Down

0 comments on commit 77a5f26

Please sign in to comment.