projects
/
haproxy-3.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ce0c2
)
CLEANUP: peers: Remove unused static function `free_dcache_tx`
author
Tim Duesterhus
<tim@bastelstu.be>
Wed, 5 Feb 2020 22:37:15 +0000
(23:37 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 5 Feb 2020 22:40:17 +0000
(23:40 +0100)
The function was added in commit
6c39198b575444466ddfc5368e481d2a7cf8111d
,
but was also used within a single function `free_dcache` which was unused
itself.
see issue #301
see commit
10ce0c2f31ba06e52edfb52176dc47986314321b
which removed
`free_dcache`
src/peers.c
patch
|
blob
|
history
diff --git
a/src/peers.c
b/src/peers.c
index
52e2a8b
..
659992c
100644
(file)
--- a/
src/peers.c
+++ b/
src/peers.c
@@
-2851,13
+2851,6
@@
static struct dcache_tx *new_dcache_tx(size_t max_entries)
return NULL;
}
-static void free_dcache_tx(struct dcache_tx *dc)
-{
- free(dc->entries);
- dc->entries = NULL;
- free(dc);
-}
-
/*
* Allocate a cache of dictionary entries with <name> as name and <max_entries>
* as maximum of entries.