Skip to content

Commit

Permalink
Remove unused include files
Browse files Browse the repository at this point in the history
ccstruct/hpdsizes.h was not used at all.
cutil/const.h was included, but not needed.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 3, 2018
1 parent a0291c7 commit 9325fbe
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/ccstruct/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif
pkginclude_HEADERS = publictypes.h
noinst_HEADERS = \
blamer.h blckerr.h blobbox.h blobs.h blread.h boxread.h boxword.h ccstruct.h coutln.h crakedge.h \
debugpixa.h detlinefit.h dppoint.h fontinfo.h genblob.h hpdsizes.h \
debugpixa.h detlinefit.h dppoint.h fontinfo.h genblob.h \
imagedata.h \
ipoints.h \
linlsq.h matrix.h mod128.h normalis.h \
Expand Down
17 changes: 0 additions & 17 deletions src/ccstruct/hpdsizes.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/classify/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
** See the License for the specific language governing permissions and
** limitations under the License.
******************************************************************************/
#include "const.h"

#include "cluster.h"
#include "emalloc.h"
#include "genericheap.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/clusttool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

//--------------------------Include Files----------------------------------
#include "clusttool.h"
#include "const.h"
#include "danerror.h"
#include "emalloc.h"
#include <cstdio>
Expand Down
1 change: 0 additions & 1 deletion src/classify/fpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/*----------------------------------------------------------------------------
Include Files and Type Defines
----------------------------------------------------------------------------*/
#include "const.h"
#include "fpoint.h"
#include <cstdio>
#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion src/classify/intproto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#endif

#include "classify.h"
#include "const.h"
#include "emalloc.h"
#include "fontinfo.h"
#include "genericvector.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/kdtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Include Files and Type Defines
-----------------------------------------------------------------------------*/
#include "kdtree.h"
#include "const.h"
#include "emalloc.h"

#include <algorithm>
Expand Down
1 change: 0 additions & 1 deletion src/classify/mfoutline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "emalloc.h"
#include "mfoutline.h"
#include "blobs.h"
#include "const.h"
#include "mfx.h"
#include "params.h"
#include "classify.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/normmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include "classify.h"
#include "clusttool.h"
#include "const.h"
#include "emalloc.h"
#include "globals.h"
#include "helpers.h"
Expand Down
1 change: 0 additions & 1 deletion src/classify/protos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
I n c l u d e s
----------------------------------------------------------------------*/
#include "protos.h"
#include "const.h"
#include "emalloc.h"
#include "callcpp.h"
#include "tprintf.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cutil/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
endif

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

Expand Down
21 changes: 0 additions & 21 deletions src/cutil/const.h

This file was deleted.

1 change: 0 additions & 1 deletion src/cutil/cutil_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define TESSERACT_CUTIL_CUTIL_CLASS_H_

#include "ccutil.h"
#include "const.h"
#include "strngs.h"

namespace tesseract {
Expand Down
6 changes: 2 additions & 4 deletions src/cutil/globals.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* -*-C-*-
********************************************************************************
******************************************************************************
*
* File: globals.h (Formerly globals.h)
* Description: Global Variables for Wise Owl
Expand All @@ -21,15 +21,13 @@
** See the License for the specific language governing permissions and
** limitations under the License.
*
*********************************************************************************/
*****************************************************************************/
#ifndef GLOBALS_H
#define GLOBALS_H

#include "const.h"
#include "unicharset.h"
#include "strngs.h"

#include <cstdio>


#endif
1 change: 0 additions & 1 deletion src/dict/stopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "stopper.h"
#include "ambigs.h"
#include "ccutil.h"
#include "const.h"
#include "danerror.h"
#include "dict.h"
#include "helpers.h"
Expand Down
1 change: 0 additions & 1 deletion src/training/mergenf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "oldlist.h"
#include "protos.h"
#include "ocrfeatures.h"
#include "const.h"
#include "featdefs.h"
#include "intproto.h"
#include "params.h"
Expand Down
1 change: 0 additions & 1 deletion src/wordrec/chop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "outlines.h"
#include "callcpp.h"
#include "plotedges.h"
#include "const.h"
#include "wordrec.h"

#include <cmath>
Expand Down
1 change: 0 additions & 1 deletion src/wordrec/chopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "associate.h"
#include "blobs.h"
#include "callcpp.h"
#include "const.h"
#include "findseam.h"
#include "globals.h"
#include "render.h"
Expand Down

0 comments on commit 9325fbe

Please sign in to comment.