Skip to content

Commit

Permalink
Remove globals.h
Browse files Browse the repository at this point in the history
It only included other files which are already included where needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Mar 11, 2019
1 parent e78b5f2 commit 5202208
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 49 deletions.
1 change: 0 additions & 1 deletion src/ccmain/control.cpp
Expand Up @@ -35,7 +35,6 @@
#include "drawfx.h"
#include "fixspace.h"
#endif
#include "globals.h"
#include "lstmrecognizer.h"
#include "ocrclass.h"
#include "output.h"
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/docqual.cpp
Expand Up @@ -22,7 +22,6 @@
#include "reject.h"
#include "tesscallback.h"
#include "tessvars.h"
#include "globals.h"
#include "tesseractclass.h"

namespace tesseract{
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/output.cpp
Expand Up @@ -26,7 +26,6 @@
#include "reject.h"
#include "docqual.h"
#include "output.h"
#include "globals.h"
#include "tesseractclass.h"

#define EPAPER_EXT ".ep"
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/reject.cpp
Expand Up @@ -46,7 +46,6 @@ int16_t Tesseract::safe_dict_word(const WERD_RES *werd_res) {
#include "control.h"
#include "docqual.h"
#include "globaloc.h" // For err_exit.
#include "globals.h"
#include "helpers.h"

#include "tesseractclass.h"
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/tessedit.cpp
Expand Up @@ -37,7 +37,6 @@
#include "intmatcher.h"
#include "chop.h"
#endif
#include "globals.h"
#ifndef ANDROID_BUILD
#include "lstmrecognizer.h"
#endif
Expand Down
1 change: 0 additions & 1 deletion src/ccmain/tesseractclass.cpp
Expand Up @@ -44,7 +44,6 @@
#include "allheaders.h"
#include "edgblob.h"
#include "equationdetect.h"
#include "globals.h"
#ifndef ANDROID_BUILD
#include "lstmrecognizer.h"
#endif
Expand Down
1 change: 0 additions & 1 deletion src/classify/adaptive.cpp
Expand Up @@ -21,7 +21,6 @@
----------------------------------------------------------------------------*/
#include "adaptive.h"
#include "emalloc.h"
#include "globals.h"
#include "classify.h"

#include <cassert>
Expand Down
1 change: 0 additions & 1 deletion src/classify/cutoffs.cpp
Expand Up @@ -23,7 +23,6 @@
#include <cstdio>

#include "classify.h"
#include "globals.h"
#include "helpers.h"
#include "serialis.h"
#include "unichar.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/intmatcher.cpp
Expand Up @@ -29,7 +29,6 @@
#include "callcpp.h"
#include "scrollview.h"
#include "float2int.h"
#include "globals.h"
#include "helpers.h"
#include "classify.h"
#include "shapetable.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/intproto.cpp
Expand Up @@ -29,7 +29,6 @@
#include "emalloc.h"
#include "fontinfo.h"
#include "genericvector.h"
#include "globals.h"
#include "helpers.h"
#include "intproto.h"
#include "mfoutline.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/normmatch.cpp
Expand Up @@ -26,7 +26,6 @@
#include "classify.h"
#include "clusttool.h"
#include "emalloc.h"
#include "globals.h"
#include "helpers.h"
#include "normfeat.h"
#include "unicharset.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/protos.cpp
Expand Up @@ -23,7 +23,6 @@
#include "emalloc.h"
#include "callcpp.h"
#include "tprintf.h"
#include "globals.h"
#include "classify.h"
#include "params.h"
#include "intproto.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cutil/Makefile.am
Expand Up @@ -9,7 +9,7 @@ endif

noinst_HEADERS = \
bitvec.h callcpp.h cutil.h cutil_class.h \
emalloc.h globals.h \
emalloc.h \
oldlist.h structures.h

noinst_LTLIBRARIES = libtesseract_cutil.la
Expand Down
33 changes: 0 additions & 33 deletions src/cutil/globals.h

This file was deleted.

1 change: 0 additions & 1 deletion src/dict/permdawg.cpp
Expand Up @@ -27,7 +27,6 @@
----------------------------------------------------------------------*/

#include "dawg.h"
#include "globals.h"
#include "stopper.h"
#include "tprintf.h"
#include "params.h"
Expand Down
1 change: 0 additions & 1 deletion src/training/commontraining.cpp
Expand Up @@ -71,7 +71,6 @@ void ParseArguments(int* argc, char ***argv) {
#include "emalloc.h"
#include "featdefs.h"
#include "fontinfo.h"
#include "globals.h"
#include "intfeaturespace.h"
#include "mastertrainer.h"
#include "mf.h"
Expand Down
1 change: 0 additions & 1 deletion src/wordrec/tface.cpp
Expand Up @@ -18,7 +18,6 @@

#include "callcpp.h"
#include "chop.h"
#include "globals.h"
#include "pageres.h"
#include "wordrec.h"
#include "featdefs.h"
Expand Down

0 comments on commit 5202208

Please sign in to comment.