mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 20:53:24 +08:00
Removed unused variable
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1140 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
c86fe22a62
commit
36b55f7710
@ -69,13 +69,11 @@ bool ParamUtils::ReadParamsFromFp(FILE *fp, inT64 end_offset,
|
||||
char line[MAX_PATH]; // input line
|
||||
bool anyerr = false; // true if any error
|
||||
bool foundit; // found parameter
|
||||
inT16 length; // length of line
|
||||
char *valptr; // value field
|
||||
|
||||
while ((end_offset < 0 || ftell(fp) < end_offset) &&
|
||||
fgets(line, MAX_PATH, fp)) {
|
||||
if (line[0] != '\n' && line[0] != '#') {
|
||||
length = strlen (line);
|
||||
chomp_string(line); // remove newline
|
||||
for (valptr = line; *valptr && *valptr != ' ' && *valptr != '\t';
|
||||
valptr++);
|
||||
|
Loading…
Reference in New Issue
Block a user