Skip to content

Commit

Permalink
Remove unused global function memrealloc
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 1, 2017
1 parent 445befd commit aebdcd8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cutil/freelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 0 additions & 2 deletions cutil/freelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
----------------------------------------------------------------------*/
int *memalloc(int size);

int *memrealloc(void *ptr, int size, int oldsize);

void memfree(void *element);

#endif

0 comments on commit aebdcd8

Please sign in to comment.