Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
Remove 'cutil/listio.cpp' and 'cutil/listio.h'. Also remove 'strsave' and 'strfree' defines from 'cutil/cutil.h'.
  • Loading branch information
alankila authored and amitdo committed Dec 9, 2016
1 parent 3a47adc commit d2d708c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 132 deletions.
4 changes: 2 additions & 2 deletions cutil/Makefile.am
Expand Up @@ -7,7 +7,7 @@ endif

noinst_HEADERS = \
bitvec.h callcpp.h const.h cutil.h cutil_class.h danerror.h efio.h \
emalloc.h freelist.h globals.h listio.h \
emalloc.h freelist.h globals.h \
oldlist.h structures.h

if !USING_MULTIPLELIBS
Expand All @@ -22,7 +22,7 @@ endif

libtesseract_cutil_la_SOURCES = \
bitvec.cpp callcpp.cpp cutil.cpp cutil_class.cpp danerror.cpp efio.cpp \
emalloc.cpp freelist.cpp listio.cpp \
emalloc.cpp freelist.cpp \
oldlist.cpp structures.cpp


20 changes: 0 additions & 20 deletions cutil/cutil.h
Expand Up @@ -92,26 +92,6 @@ typedef void (*void_dest) (void *);
#define print_string(str) \
printf ("%s\n", str)

/**********************************************************************
* strfree
*
* Free the memory which was reserved by strsave.
**********************************************************************/

#define strfree(s) (free_string(s))

/**********************************************************************
* strsave
*
* Reserve a spot in memory for the string to be stored. Copy the string
* to it and return the result.
**********************************************************************/

#define strsave(s) \
((s) != NULL ? \
((char*) strcpy (alloc_string(strlen(s)+1), s)) : \
(NULL))

/*----------------------------------------------------------------------
F u n c t i o n s
----------------------------------------------------------------------*/
Expand Down
67 changes: 0 additions & 67 deletions cutil/listio.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions cutil/listio.h

This file was deleted.

0 comments on commit d2d708c

Please sign in to comment.