]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: memory: Remove unused function pool_destroy
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Aug 2017 12:28:44 +0000 (14:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:13:20 +0000 (10:13 +0200)
This one was never used.

include/common/memory.h

index d52fb62657d2c90dea7aac53dfe58cc3cb17d894..f2d69783f0896bc24708bf22415a8b5c078b4f77 100644 (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