Skip to content

Commit

Permalink
Remove gradechop.h
Browse files Browse the repository at this point in the history
It only defines the macro partial_split_priority which is only used in
findseam.cpp, so move it to that file.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 12, 2018
1 parent 2633ba2 commit d59f14c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 54 deletions.
1 change: 0 additions & 1 deletion src/wordrec/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ noinst_HEADERS += \
chopper.h \
drawfx.h \
findseam.h \
gradechop.h \
language_model.h \
lm_consistency.h \
lm_pain_points.h \
Expand Down
12 changes: 11 additions & 1 deletion src/wordrec/findseam.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 "findseam.h"
#include "gradechop.h"
#include "plotedges.h"
#include "outlines.h"
#include "seam.h"
Expand All @@ -37,6 +36,17 @@
#include "config_auto.h"
#endif

/**********************************************************************
* partial_split_priority
*
* Assign a priority to this split based on the features that it has.
* Grade it according to the different rating schemes and return the
* value of its goodness.
**********************************************************************/

#define partial_split_priority(split) \
(grade_split_length(split) + grade_sharpness(split))

/*----------------------------------------------------------------------
T y p e s
----------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion src/wordrec/gradechop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/*----------------------------------------------------------------------
I n c l u d e s
----------------------------------------------------------------------*/
#include "gradechop.h"

#include "wordrec.h"
#include "chop.h"
#include <algorithm>
Expand Down
49 changes: 0 additions & 49 deletions src/wordrec/gradechop.h

This file was deleted.

1 change: 0 additions & 1 deletion src/wordrec/tface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "chop.h"
#include "chopper.h"
#include "globals.h"
#include "gradechop.h"
#include "pageres.h"
#include "wordrec.h"
#include "featdefs.h"
Expand Down
1 change: 0 additions & 1 deletion src/wordrec/wordrec.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class Wordrec : public Classify {
#include "language_model.h"
#include "ratngs.h"
#include "matrix.h"
#include "gradechop.h"
#include "seam.h"
#include "findseam.h"
#include "callcpp.h"
Expand Down

0 comments on commit d59f14c

Please sign in to comment.