From ae459fd2068899055d8f0d93e3cbe2148d7b8ffc Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 28 Aug 2017 14:28:44 +0200 Subject: [PATCH] CLEANUP: memory: Remove unused function pool_destroy This one was never used. --- include/common/memory.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/common/memory.h b/include/common/memory.h index d52fb6265..f2d69783f 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 -- 2.47.3