summaryrefslogtreecommitdiff
path: root/lib/linklist.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-11-27 22:52:50 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-14 12:41:19 +0100
commit45e69fa8f7bfdada1eb545c6ae4641c55333d144 (patch)
tree637d812a04f8e632d708a7debfe1a5d037b6df24 /lib/linklist.h
parenteb51bb9b1fa2fbb339c583cb5b479246b0821dcc (diff)
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.h')
-rw-r--r--lib/linklist.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/linklist.h b/lib/linklist.h
index ef914b965f..00cb9f8714 100644
--- a/lib/linklist.h
+++ b/lib/linklist.h
@@ -208,17 +208,6 @@ extern struct listnode *listnode_lookup(struct list *list, const void *data);
extern void *listnode_head(struct list *list);
/*
- * Duplicate a list.
- *
- * list
- * list to duplicate
- *
- * Returns:
- * copy of the list
- */
-extern struct list *list_dup(struct list *l);
-
-/*
* Sort a list in place.
*
* The sorting algorithm used is quicksort. Runtimes are equivalent to those of
@@ -296,19 +285,6 @@ extern void list_delete_all_node(struct list *list);
extern void list_delete_node(struct list *list, struct listnode *node);
/*
- * Append a list to an existing list.
- *
- * Runtime is O(N) where N = listcount(add).
- *
- * list
- * list to append to
- *
- * add
- * list to append
- */
-extern void list_add_list(struct list *list, struct list *add);
-
-/*
* Delete all nodes which satisfy a condition from a list.
* Deletes the node if cond function returns true for the node.
* If function ptr passed is NULL, it deletes all nodes