From d96c4e1ea2b24c14eb844f94cfb87af51b372c4f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 30 Jan 2020 12:45:35 -0800 Subject: util: Remove unused listinsertlist --- util.c | 11 ----------- util.h | 1 - 2 files changed, 12 deletions(-) diff --git a/util.c b/util.c index 22300ba..1e44194 100644 --- a/util.c +++ b/util.c @@ -125,17 +125,6 @@ listinsert(struct list *list, struct list *new) list->next = 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) { diff --git a/util.h b/util.h index 25cca14..504662b 100644 --- a/util.h +++ b/util.h @@ -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)) -- cgit v1.2.3