Skip to content

Commit aebdcd8

Browse files
committed
Remove unused global function memrealloc
Signed-off-by: Stefan Weil <[email protected]>
1 parent 445befd commit aebdcd8

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

cutil/freelist.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ int *memalloc(int size) {
2323
return static_cast<int*>(malloc(static_cast<size_t>(size)));
2424
}
2525

26-
int *memrealloc(void *ptr, int size, int oldsize) {
27-
return static_cast<int*>(realloc(ptr, static_cast<size_t>(size)));
28-
}
29-
3026
void memfree(void *element) {
3127
free(element);
3228
}

cutil/freelist.h

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
----------------------------------------------------------------------*/
3737
int *memalloc(int size);
3838

39-
int *memrealloc(void *ptr, int size, int oldsize);
40-
4139
void memfree(void *element);
4240

4341
#endif

0 commit comments

Comments
 (0)