mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
cutil: Remove unused code using memfree
The case (destructor == NULL) never occurs in the current code. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
80fdb634ba
commit
ca89a11f28
@ -87,8 +87,6 @@
|
||||
#include <stdio.h>
|
||||
#if MAC_OR_DOS
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include "freelist.h"
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
@ -202,8 +200,7 @@ LIST destroy(LIST list) {
|
||||
* Return the space taken by the LISTs of a list to the heap.
|
||||
**********************************************************************/
|
||||
void destroy_nodes(LIST list, void_dest destructor) {
|
||||
if (destructor == NULL)
|
||||
destructor = memfree;
|
||||
ASSERT_HOST(destructor != NULL);
|
||||
|
||||
while (list != NIL_LIST) {
|
||||
if (first_node(list) != NULL) (*destructor)(first_node(list));
|
||||
|
Loading…
Reference in New Issue
Block a user