From: Christopher Faulet Date: Mon, 28 Aug 2017 12:28:44 +0000 (+0200) Subject: CLEANUP: memory: Remove unused function pool_destroy X-Git-Tag: v1.8-dev3~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae459fd2068899055d8f0d93e3cbe2148d7b8ffc;p=thirdparty%2Fhaproxy.git CLEANUP: memory: Remove unused function pool_destroy This one was never used. --- diff --git a/include/common/memory.h b/include/common/memory.h index d52fb62657..f2d69783f0 100644 --- a/include/common/memory.h +++ b/include/common/memory.h @@ -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 until there are at least + 1 * available, then returns the last one for immediate use, so that at least * are left available in the pool upon return. NULL is returned if the