From: Tim Duesterhus Date: Wed, 5 Feb 2020 16:22:02 +0000 (+0100) Subject: CLEANUP: peers: Remove unused static function `free_dcache` X-Git-Tag: v2.2-dev2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10ce0c2f31ba06e52edfb52176dc47986314321b;p=thirdparty%2Fhaproxy.git CLEANUP: peers: Remove unused static function `free_dcache` The function was changed to be static in commit 6c39198b575444466ddfc5368e481d2a7cf8111d, but even that commit no longer uses it. The purpose of the change vs. outright removal is unclear. see issue #301 --- diff --git a/src/peers.c b/src/peers.c index e2581a73b9..52e2a8ba45 100644 --- a/src/peers.c +++ b/src/peers.c @@ -2889,18 +2889,6 @@ static struct dcache *new_dcache(size_t max_entries) return NULL; } -/* - * Deallocate a cache of dictionary entries. - */ -static inline void free_dcache(struct dcache *dc) -{ - free_dcache_tx(dc->tx); - dc->tx = NULL; - free(dc->rx); dc->rx = NULL; - free(dc); -} - - /* * Look for the dictionary entry with the value of in cache of dictionary * entries used upon transmission.