Skip to content

Commit

Permalink
Merge pull request #176 from stweil/master
Browse files Browse the repository at this point in the history
Fix compiler warnings (remove unused constants)
  • Loading branch information
zdenop committed Dec 22, 2015
2 parents c1d1af0 + d701c15 commit a361e84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions textord/colpartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ CLISTIZE(ColPartition)

//////////////// ColPartition Implementation ////////////////

// If multiple partners survive the partner depth test beyond this level,
// then arbitrarily pick one.
const int kMaxPartnerDepth = 4;
// Maximum change in spacing (in inches) to ignore.
const double kMaxSpacingDrift = 1.0 / 72; // 1/72 is one point.
// Maximum fraction of line height used as an additional allowance
Expand All @@ -60,8 +57,6 @@ const double kMaxLeaderGapFractionOfMax = 0.25;
const double kMaxLeaderGapFractionOfMin = 0.5;
// Minimum number of blobs to be considered a leader.
const int kMinLeaderCount = 5;
// Cost of a cut through a leader.
const int kLeaderCutCost = 8;
// Minimum score for a STRONG_CHAIN textline.
const int kMinStrongTextValue = 6;
// Minimum score for a CHAIN textline.
Expand Down
8 changes: 0 additions & 8 deletions textord/colpartitiongrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ const int kMaxPadFactor = 6;
// Max multiple of size (min(height, width)) for the distance of the nearest
// neighbour for the change of type to be used.
const int kMaxNeighbourDistFactor = 4;
// Max RMS color noise to compare colors.
const int kMaxRMSColorNoise = 128;
// Minimum number of blobs in text to make a strong text partition.
const int kHorzStrongTextlineCount = 10;
// Maximum number of lines in a credible figure caption.
const int kMaxCaptionLines = 7;
// Min ratio between biggest and smallest gap to bound a caption.
Expand All @@ -49,10 +45,6 @@ const double kMinCaptionGapHeightRatio = 0.5;
const double kMarginOverlapFraction = 0.25;
// Size ratio required to consider an unmerged overlapping partition to be big.
const double kBigPartSizeRatio = 1.75;
// Allowed proportional change in stroke width to match for smoothing.
const double kStrokeWidthFractionTolerance = 0.25;
// Allowed constant change in stroke width to match for smoothing.
const double kStrokeWidthConstantTolerance = 2.0;
// Fraction of gridsize to allow arbitrary overlap between partitions.
const double kTinyEnoughTextlineOverlapFraction = 0.25;
// Max vertical distance of neighbouring ColPartition as a multiple of
Expand Down
1 change: 0 additions & 1 deletion viewer/svutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ struct addrinfo {

#include "svutil.h"

const int kBufferSize = 65536;
const int kMaxMsgSize = 4096;

// Signals a thread to exit.
Expand Down

0 comments on commit a361e84

Please sign in to comment.