Skip to content

Commit d701c15

Browse files
committed
Fix compiler warnings (remove unused constants)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent c1d1af0 commit d701c15

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

textord/colpartition.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ CLISTIZE(ColPartition)
4141

4242
//////////////// ColPartition Implementation ////////////////
4343

44-
// If multiple partners survive the partner depth test beyond this level,
45-
// then arbitrarily pick one.
46-
const int kMaxPartnerDepth = 4;
4744
// Maximum change in spacing (in inches) to ignore.
4845
const double kMaxSpacingDrift = 1.0 / 72; // 1/72 is one point.
4946
// Maximum fraction of line height used as an additional allowance
@@ -60,8 +57,6 @@ const double kMaxLeaderGapFractionOfMax = 0.25;
6057
const double kMaxLeaderGapFractionOfMin = 0.5;
6158
// Minimum number of blobs to be considered a leader.
6259
const int kMinLeaderCount = 5;
63-
// Cost of a cut through a leader.
64-
const int kLeaderCutCost = 8;
6560
// Minimum score for a STRONG_CHAIN textline.
6661
const int kMinStrongTextValue = 6;
6762
// Minimum score for a CHAIN textline.

textord/colpartitiongrid.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ const int kMaxPadFactor = 6;
3535
// Max multiple of size (min(height, width)) for the distance of the nearest
3636
// neighbour for the change of type to be used.
3737
const int kMaxNeighbourDistFactor = 4;
38-
// Max RMS color noise to compare colors.
39-
const int kMaxRMSColorNoise = 128;
40-
// Minimum number of blobs in text to make a strong text partition.
41-
const int kHorzStrongTextlineCount = 10;
4238
// Maximum number of lines in a credible figure caption.
4339
const int kMaxCaptionLines = 7;
4440
// Min ratio between biggest and smallest gap to bound a caption.
@@ -49,10 +45,6 @@ const double kMinCaptionGapHeightRatio = 0.5;
4945
const double kMarginOverlapFraction = 0.25;
5046
// Size ratio required to consider an unmerged overlapping partition to be big.
5147
const double kBigPartSizeRatio = 1.75;
52-
// Allowed proportional change in stroke width to match for smoothing.
53-
const double kStrokeWidthFractionTolerance = 0.25;
54-
// Allowed constant change in stroke width to match for smoothing.
55-
const double kStrokeWidthConstantTolerance = 2.0;
5648
// Fraction of gridsize to allow arbitrary overlap between partitions.
5749
const double kTinyEnoughTextlineOverlapFraction = 0.25;
5850
// Max vertical distance of neighbouring ColPartition as a multiple of

viewer/svutil.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ struct addrinfo {
6060

6161
#include "svutil.h"
6262

63-
const int kBufferSize = 65536;
6463
const int kMaxMsgSize = 4096;
6564

6665
// Signals a thread to exit.

0 commit comments

Comments
 (0)