Skip to content

Commit 55901a4

Browse files
committed
Remove classify/cutoffs.h
It only defined CLASS_CUTOFF_ARRAY and some unused definitions. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 82458db commit 55901a4

File tree

5 files changed

+2
-50
lines changed

5 files changed

+2
-50
lines changed

src/classify/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ noinst_HEADERS += \
2323
adaptive.h \
2424
cluster.h \
2525
clusttool.h \
26-
cutoffs.h \
2726
errorcounter.h \
2827
featdefs.h \
2928
float2int.h \

src/classify/classify.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Classify : public CCStruct {
145145
const uint8_t* normalization_factors,
146146
const uint16_t* expected_num_features,
147147
GenericVector<CP_RESULT_STRUCT>* results);
148-
void ReadNewCutoffs(TFile* fp, CLASS_CUTOFF_ARRAY Cutoffs);
148+
void ReadNewCutoffs(TFile* fp, uint16_t* Cutoffs);
149149
void PrintAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates);
150150
void WriteAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates);
151151
ADAPT_TEMPLATES ReadAdaptedTemplates(TFile* File);

src/classify/cutoffs.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
/*----------------------------------------------------------------------------
1818
Include Files and Type Defines
1919
----------------------------------------------------------------------------*/
20-
#include "cutoffs.h"
2120

2221
#include <cstdio>
2322
#include <sstream> // for std::istringstream
@@ -41,7 +40,7 @@ namespace tesseract {
4140
* @param fp file containing cutoff definitions
4241
* @param Cutoffs array to put cutoffs into
4342
*/
44-
void Classify::ReadNewCutoffs(TFile* fp, CLASS_CUTOFF_ARRAY Cutoffs) {
43+
void Classify::ReadNewCutoffs(TFile* fp, uint16_t* Cutoffs) {
4544
int Cutoff;
4645

4746
if (shape_table_ != nullptr) {

src/classify/cutoffs.h

-45
This file was deleted.

src/classify/intmatcher.h

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ extern INT_VAR_H(classify_integer_matcher_multiplier, 10,
3535
Include Files and Type Defines
3636
----------------------------------------------------------------------------**/
3737
#include "intproto.h"
38-
#include "cutoffs.h"
3938

4039
namespace tesseract {
4140
struct UnicharRating;

0 commit comments

Comments
 (0)