mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
Merge pull request #1767 from stweil/unused
Remove unused macros and fix comments
This commit is contained in:
commit
e9cd6024d7
@ -114,7 +114,7 @@ CMD_EVENTS mode = CHANGE_DISP_CMD_EVENT; // selected words op
|
||||
bool recog_done = false; // recog_all_words was called
|
||||
|
||||
// These variables should remain global, since they are only used for the
|
||||
// debug mode (in which only a single Tesseract thread/instance will be exist).
|
||||
// debug mode (in which only a single Tesseract thread/instance will exist).
|
||||
BITS16 word_display_mode;
|
||||
static ColorationMode color_mode = CM_RAINBOW;
|
||||
BOOL8 display_image = FALSE;
|
||||
|
@ -246,8 +246,8 @@ class DoubleParam : public Param {
|
||||
//
|
||||
// To avoid the problem of undetermined order of static initialization
|
||||
// global_params are accessed through the GlobalParams function that
|
||||
// initializes the static pointer to global_params only on the first
|
||||
// first time GlobalParams() is called.
|
||||
// initializes the static pointer to global_params only on the first time
|
||||
// GlobalParams() is called.
|
||||
//
|
||||
// TODO(daria): remove GlobalParams() when all global Tesseract
|
||||
// parameters are converted to members.
|
||||
@ -285,18 +285,6 @@ tesseract::ParamsVectors *GlobalParams();
|
||||
#define double_VAR(name,val,comment)\
|
||||
tesseract::DoubleParam name(val,#name,comment,false,GlobalParams())
|
||||
|
||||
#define INT_INIT_VAR(name,val,comment)\
|
||||
tesseract::IntParam name(val,#name,comment,true,GlobalParams())
|
||||
|
||||
#define BOOL_INIT_VAR(name,val,comment)\
|
||||
tesseract::BoolParam name(val,#name,comment,true,GlobalParams())
|
||||
|
||||
#define STRING_INIT_VAR(name,val,comment)\
|
||||
tesseract::StringParam name(val,#name,comment,true,GlobalParams())
|
||||
|
||||
#define double_INIT_VAR(name,val,comment)\
|
||||
tesseract::DoubleParam name(val,#name,comment,true,GlobalParams())
|
||||
|
||||
#define INT_MEMBER(name, val, comment, vec)\
|
||||
name(val, #name, comment, false, vec)
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#include "drawedg.h"
|
||||
#include "drawedg.h"
|
||||
|
||||
// Include automatically generated configuration file if running autoconf.
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -33,8 +33,6 @@
|
||||
/** default position */
|
||||
#define IMAGE_YPOS 0
|
||||
|
||||
#define EXTERN
|
||||
|
||||
/**
|
||||
* @name create_edges_window
|
||||
*
|
||||
|
@ -28,8 +28,6 @@
|
||||
|
||||
#define PROJECTION_MARGIN 10 //arbitrary
|
||||
|
||||
#define EXTERN
|
||||
|
||||
/**********************************************************************
|
||||
* FPCUTPT::setup
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user