]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: peers: Remove unused static function `free_dcache`
authorTim Duesterhus <tim@bastelstu.be>
Wed, 5 Feb 2020 16:22:02 +0000 (17:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Feb 2020 17:49:29 +0000 (18:49 +0100)
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

src/peers.c

index e2581a73b9510106bb3079d5691f0d4368599abf..52e2a8ba455b663269266923f46b53ec120c5035 100644 (file)
@@ -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 <i> in <d> cache of dictionary
  * entries used upon transmission.