Skip to content

Commit d2d708c

Browse files
alankilaamitdo
authored andcommitted
Remove unused code.
Remove 'cutil/listio.cpp' and 'cutil/listio.h'. Also remove 'strsave' and 'strfree' defines from 'cutil/cutil.h'.
1 parent 3a47adc commit d2d708c

File tree

4 files changed

+2
-132
lines changed

4 files changed

+2
-132
lines changed

cutil/Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ endif
77

88
noinst_HEADERS = \
99
bitvec.h callcpp.h const.h cutil.h cutil_class.h danerror.h efio.h \
10-
emalloc.h freelist.h globals.h listio.h \
10+
emalloc.h freelist.h globals.h \
1111
oldlist.h structures.h
1212

1313
if !USING_MULTIPLELIBS
@@ -22,7 +22,7 @@ endif
2222

2323
libtesseract_cutil_la_SOURCES = \
2424
bitvec.cpp callcpp.cpp cutil.cpp cutil_class.cpp danerror.cpp efio.cpp \
25-
emalloc.cpp freelist.cpp listio.cpp \
25+
emalloc.cpp freelist.cpp \
2626
oldlist.cpp structures.cpp
2727

2828

cutil/cutil.h

-20
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,6 @@ typedef void (*void_dest) (void *);
9292
#define print_string(str) \
9393
printf ("%s\n", str)
9494

95-
/**********************************************************************
96-
* strfree
97-
*
98-
* Free the memory which was reserved by strsave.
99-
**********************************************************************/
100-
101-
#define strfree(s) (free_string(s))
102-
103-
/**********************************************************************
104-
* strsave
105-
*
106-
* Reserve a spot in memory for the string to be stored. Copy the string
107-
* to it and return the result.
108-
**********************************************************************/
109-
110-
#define strsave(s) \
111-
((s) != NULL ? \
112-
((char*) strcpy (alloc_string(strlen(s)+1), s)) : \
113-
(NULL))
114-
11595
/*----------------------------------------------------------------------
11696
F u n c t i o n s
11797
----------------------------------------------------------------------*/

cutil/listio.cpp

-67
This file was deleted.

cutil/listio.h

-43
This file was deleted.

0 commit comments

Comments
 (0)