mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
remove already commented out function : memp_realloc
This commit is contained in:
parent
e196108931
commit
5212afdd8f
@ -218,30 +218,6 @@ memp_mallocp(memp_t type)
|
||||
return mem;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
#if 0
|
||||
void *
|
||||
memp_realloc(memp_t fromtype, memp_t totype, void *mem)
|
||||
{
|
||||
void *rmem;
|
||||
u16_t size;
|
||||
|
||||
if(mem == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rmem = memp_malloc(totype);
|
||||
if(rmem != NULL) {
|
||||
size = memp_sizes[totype];
|
||||
if(memp_sizes[fromtype] < size) {
|
||||
size = memp_sizes[fromtype];
|
||||
}
|
||||
bcopy(mem, rmem, size);
|
||||
memp_free(fromtype, mem);
|
||||
}
|
||||
return rmem;
|
||||
}
|
||||
#endif /* 0 */
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
memp_free(memp_t type, void *mem)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user