File tree 7 files changed +2
-28
lines changed
7 files changed +2
-28
lines changed Original file line number Diff line number Diff line change 44
44
#define DESC_HEIGHT 0
45
45
#define MAXSPACING 128 /* max expected spacing in pix */
46
46
47
- constexpr ERRCODE EMPTYBLOCKLIST (" No blocks to edit" );
48
-
49
47
enum CMD_EVENTS
50
48
{
51
49
NULL_CMD_EVENT,
Original file line number Diff line number Diff line change 29
29
#define LAST_COLOUR ScrollView::AQUAMARINE // /< last rainbow colour
30
30
#define CHILD_COLOUR ScrollView::BROWN // /< colour of children
31
31
32
- constexpr ERRCODE CANT_SCALE_EDGESTEPS (
33
- " Attempted to scale an edgestep format word" );
34
-
35
32
ELIST2IZE (WERD)
36
33
37
34
/* *
Original file line number Diff line number Diff line change 2
2
* File: mainblk.cpp (Formerly main.c)
3
3
* Description: Function to call from main() to setup.
4
4
* Author: Ray Smith
5
- * Created: Tue Oct 22 11:09:40 BST 1991
6
5
*
7
6
* (C) Copyright 1991, Hewlett-Packard Ltd.
8
7
** Licensed under the Apache License, Version 2.0 (the "License");
25
24
#include " fileerr.h"
26
25
#include " ccutil.h"
27
26
28
- const ERRCODE NO_PATH =
29
- " Warning:explicit path for executable will not be used for configs" ;
30
- static const ERRCODE USAGE = " Usage" ;
31
-
32
27
namespace tesseract {
33
28
/* *********************************************************************
34
29
* main_setup
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ using tesseract::TFile;
31
31
// Size of buffer needed to host the decimal representation of the maximum
32
32
// possible length of an int (in 64 bits), being -<20 digits>.
33
33
const int kMaxIntSize = 22 ;
34
- // Size of buffer needed to host the decimal representation of the maximum
35
- // possible length of a %.8g being -1.2345678e+999<nul> = 16.
36
- const int kMaxDoubleSize = 16 ;
37
34
38
35
/* *********************************************************************
39
36
* STRING_HEADER provides metadata about the allocated buffer,
Original file line number Diff line number Diff line change 3
3
// Description: Class to hold BLOBNBOXs in a grid for fast access
4
4
// to neighbours.
5
5
// Author: Ray Smith
6
- // Created: Wed Jun 06 17:22:01 PDT 2007
7
6
//
8
7
// (C) Copyright 2007, Google Inc.
9
8
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -100,7 +99,7 @@ void IntGrid::Clear() {
100
99
void IntGrid::Rotate (const FCOORD& rotation) {
101
100
ASSERT_HOST (rotation.x () == 0 .0f || rotation.y () == 0 .0f );
102
101
ICOORD old_bleft (bleft ());
103
- ICOORD old_tright (tright ());
102
+ // ICOORD old_tright(tright());
104
103
int old_width = gridwidth ();
105
104
int old_height = gridheight ();
106
105
TBOX box (bleft (), tright ());
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const double kTableColumnThreshold = 3.0;
89
89
90
90
// Search for horizontal ruling lines within the vertical margin as a
91
91
// multiple of grid size
92
- const int kRulingVerticalMargin = 3 ;
92
+ // const int kRulingVerticalMargin = 3;
93
93
94
94
// Minimum overlap that a colpartition must have with a table region
95
95
// to become part of that table
Original file line number Diff line number Diff line change @@ -315,18 +315,6 @@ static std::string ScrollViewCommand(std::string scrollview_path) {
315
315
return command;
316
316
}
317
317
318
-
319
- // Platform-independent freeaddrinfo()
320
- static void TessFreeAddrInfo (struct addrinfo * addr_info) {
321
- #if defined(__linux__)
322
- freeaddrinfo (addr_info);
323
- #else
324
- delete addr_info->ai_addr ;
325
- delete addr_info;
326
- #endif
327
- }
328
-
329
-
330
318
// Set up a connection to a ScrollView on hostname:port.
331
319
SVNetwork::SVNetwork (const char * hostname, int port) {
332
320
msg_buffer_in_ = new char [kMaxMsgSize + 1 ];
You can’t perform that action at this time.
0 commit comments