summaryrefslogtreecommitdiffstats
path: root/lib/linklist.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-05-03 16:40:09 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-05-03 20:56:55 +0200
commit02fb02de37ae7eb98328758707abaf2c31b4e785 (patch)
treeee5cc77434884540e7045cf137bc591ca5a42fea /lib/linklist.c
parentpimd: cleanup & convert bsm_rpinfo to TS list (diff)
downloadfrr-02fb02de37ae7eb98328758707abaf2c31b4e785.tar.xz
frr-02fb02de37ae7eb98328758707abaf2c31b4e785.zip
lib: kill unused list_filter_out_nodes()
pimd was the only user of this function, and that has gone away now. So just kill the function. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/linklist.c')
-rw-r--r--lib/linklist.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/linklist.c b/lib/linklist.c
index 5de6c8a81..8137b68d8 100644
--- a/lib/linklist.c
+++ b/lib/linklist.c
@@ -320,23 +320,6 @@ void list_delete_all_node(struct list *list)
list->count = 0;
}
-void list_filter_out_nodes(struct list *list, bool (*cond)(void *data))
-{
- struct listnode *node;
- struct listnode *next;
- void *data;
-
- assert(list);
-
- for (ALL_LIST_ELEMENTS(list, node, next, data)) {
- if ((cond && cond(data)) || (!cond)) {
- if (*list->del)
- (*list->del)(data);
- list_delete_node(list, node);
- }
- }
-}
-
void list_delete(struct list **list)
{
assert(*list);