diff options
author | David Lamparter <equinox@diac24.net> | 2019-11-27 22:52:50 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-12-14 12:41:19 +0100 |
commit | 45e69fa8f7bfdada1eb545c6ae4641c55333d144 (patch) | |
tree | 637d812a04f8e632d708a7debfe1a5d037b6df24 /lib/linklist.c | |
parent | lib: random unused bits cleanup (diff) | |
download | frr-45e69fa8f7bfdada1eb545c6ae4641c55333d144.tar.xz frr-45e69fa8f7bfdada1eb545c6ae4641c55333d144.zip |
lib/linklist: flip the bitrot compost
The whole lib/linklist.c code shouldn't really be used for new code (the
lib/typesafe.h bits are better.) So, a new need for these unused
functions shouldn't be coming up.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/linklist.c')
-rw-r--r-- | lib/linklist.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/linklist.c b/lib/linklist.c index 0d1efdf3a..272e15327 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -339,29 +339,6 @@ void list_delete_node(struct list *list, struct listnode *node) listnode_free(node); } -void list_add_list(struct list *list, struct list *add) -{ - struct listnode *n; - - for (n = listhead(add); n; n = listnextnode(n)) - listnode_add(list, n->data); -} - -struct list *list_dup(struct list *list) -{ - struct list *new = list_new(); - struct listnode *ln; - void *data; - - new->cmp = list->cmp; - new->del = list->del; - - for (ALL_LIST_ELEMENTS_RO(list, ln, data)) - listnode_add(new, data); - - return new; -} - void list_sort(struct list *list, int (*cmp)(const void **, const void **)) { struct listnode *ln, *nn; |