Skip to content

Commit

Permalink
Remove classify/cutoffs.h
Browse files Browse the repository at this point in the history
It only defined CLASS_CUTOFF_ARRAY and some unused definitions.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 25, 2019
1 parent 82458db commit 55901a4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 50 deletions.
1 change: 0 additions & 1 deletion src/classify/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ noinst_HEADERS += \
adaptive.h \
cluster.h \
clusttool.h \
cutoffs.h \
errorcounter.h \
featdefs.h \
float2int.h \
Expand Down
2 changes: 1 addition & 1 deletion src/classify/classify.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Classify : public CCStruct {
const uint8_t* normalization_factors,
const uint16_t* expected_num_features,
GenericVector<CP_RESULT_STRUCT>* results);
void ReadNewCutoffs(TFile* fp, CLASS_CUTOFF_ARRAY Cutoffs);
void ReadNewCutoffs(TFile* fp, uint16_t* Cutoffs);
void PrintAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates);
void WriteAdaptedTemplates(FILE *File, ADAPT_TEMPLATES Templates);
ADAPT_TEMPLATES ReadAdaptedTemplates(TFile* File);
Expand Down
3 changes: 1 addition & 2 deletions src/classify/cutoffs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/*----------------------------------------------------------------------------
Include Files and Type Defines
----------------------------------------------------------------------------*/
#include "cutoffs.h"

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

if (shape_table_ != nullptr) {
Expand Down
45 changes: 0 additions & 45 deletions src/classify/cutoffs.h

This file was deleted.

1 change: 0 additions & 1 deletion src/classify/intmatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern INT_VAR_H(classify_integer_matcher_multiplier, 10,
Include Files and Type Defines
----------------------------------------------------------------------------**/
#include "intproto.h"
#include "cutoffs.h"

namespace tesseract {
struct UnicharRating;
Expand Down

0 comments on commit 55901a4

Please sign in to comment.