Merge pull request #859 from stweil/unused

Remove unused code
This commit is contained in:
zdenop 2017-05-01 17:18:16 +02:00 committed by GitHub
commit ebea04e67a
11 changed files with 0 additions and 25 deletions

View File

@ -437,17 +437,6 @@ struct TWERD {
bool latin_script; // This word is in a latin-based script.
};
/*----------------------------------------------------------------------
M a c r o s
----------------------------------------------------------------------*/
/**********************************************************************
* free_widths
*
* Free the memory taken up by a width array.
**********************************************************************/
#define free_widths(w) \
if (w) memfree (w)
/*----------------------------------------------------------------------
F u n c t i o n s
----------------------------------------------------------------------*/

View File

@ -24,7 +24,6 @@
#include <stdio.h>
#include "emalloc.h"
#include "freelist.h"
#include "tprintf.h"
/*-----------------------------------------------------------------------------

View File

@ -23,10 +23,6 @@ int *memalloc(int size) {
return static_cast<int*>(malloc(static_cast<size_t>(size)));
}
int *memrealloc(void *ptr, int size, int oldsize) {
return static_cast<int*>(realloc(ptr, static_cast<size_t>(size)));
}
void memfree(void *element) {
free(element);
}

View File

@ -36,8 +36,6 @@
----------------------------------------------------------------------*/
int *memalloc(int size);
int *memrealloc(void *ptr, int size, int oldsize);
void memfree(void *element);
#endif

View File

@ -29,7 +29,6 @@
I n c l u d e s
----------------------------------------------------------------------*/
#include "oldlist.h"
#include "freelist.h"
#include "danerror.h"
/*----------------------------------------------------------------------

View File

@ -28,7 +28,6 @@
#include "cutil.h"
#include "dawg.h"
#include "freelist.h"
#include "globals.h"
#include "ndminx.h"
#include "stopper.h"

View File

@ -26,7 +26,6 @@
#include "dawg.h"
#include "dict.h"
#include "emalloc.h"
#include "freelist.h"
#include "helpers.h"
#include "serialis.h"
#include "trie.h"

View File

@ -37,7 +37,6 @@
#include "callcpp.h"
#include "const.h"
#include "findseam.h"
#include "freelist.h"
#include "globals.h"
#include "render.h"
#include "pageres.h"

View File

@ -29,7 +29,6 @@
#include "gradechop.h"
#include "plotedges.h"
#include "outlines.h"
#include "freelist.h"
#include "seam.h"
#include "wordrec.h"

View File

@ -23,7 +23,6 @@
#include "language_model.h"
#include "dawg.h"
#include "freelist.h"
#include "intproto.h"
#include "helpers.h"
#include "lm_state.h"

View File

@ -27,7 +27,6 @@
----------------------------------------------------------------------*/
#include "blobs.h"
#include "freelist.h"
#include "helpers.h"
#include "matrix.h"
#include "ndminx.h"