diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-05-03 16:40:09 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-05-03 20:56:55 +0200 | 
| commit | 02fb02de37ae7eb98328758707abaf2c31b4e785 (patch) | |
| tree | ee5cc77434884540e7045cf137bc591ca5a42fea /lib/linklist.c | |
| parent | fdab29403786a385d40182967f0776fb4c44a8f6 (diff) | |
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.c | 17 | 
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/linklist.c b/lib/linklist.c index 5de6c8a817..8137b68d84 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);  | 
