CLEANUP: memory: Remove unused function pool_destroy

This one was never used.
This commit is contained in:
Christopher Faulet 2017-08-28 14:28:44 +02:00 committed by Willy Tarreau
parent b6c8b0db04
commit ae459fd206

View File

@ -61,21 +61,6 @@ struct pool_head {
/* poison each newly allocated area with this byte if >= 0 */
extern int mem_poison_byte;
/*
* This function destroys a pull by freeing it completely.
* This should be called only under extreme circumstances.
*/
static inline void pool_destroy(void **pool)
{
void *temp, *next;
next = pool;
while (next) {
temp = next;
next = *(void **)temp;
free(temp);
}
}
/* Allocates new entries for pool <pool> until there are at least <avail> + 1
* available, then returns the last one for immediate use, so that at least
* <avail> are left available in the pool upon return. NULL is returned if the