diff options
author | Michael Forney <mforney@mforney.org> | 2020-01-30 12:45:35 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-01-30 12:45:35 -0800 |
commit | d96c4e1ea2b24c14eb844f94cfb87af51b372c4f (patch) | |
tree | f5686db2cefb63ce1c8f8f5a00411eb81fea5a34 | |
parent | 090e2932ce7d7c63d2a382213657903fcffb1b9b (diff) | |
download | cproc-d96c4e1ea2b24c14eb844f94cfb87af51b372c4f.tar.xz |
util: Remove unused listinsertlist
-rw-r--r-- | util.c | 11 | ||||
-rw-r--r-- | util.h | 1 |
2 files changed, 0 insertions, 12 deletions
@@ -126,17 +126,6 @@ listinsert(struct list *list, struct list *new) } void -listinsertlist(struct list *list, struct list *new) -{ - if (new->next == new) - return; - new->next->prev = list; - new->prev->next = list; - list->next->prev = new->prev; - list->next = new->next; -} - -void listremove(struct list *list) { list->next->prev = list->prev; @@ -36,7 +36,6 @@ void *xmalloc(size_t); char *progname(char *, char *); void listinsert(struct list *, struct list *); -void listinsertlist(struct list *, struct list *); void listremove(struct list *); #define listelement(list, type, member) (type *)((char *)list - offsetof(type, member)) |