summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-12 14:46:06 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-12 14:46:06 +0200
commit1df20989c191353d9c6da4d8679f8cb1ead49f7f (patch)
treea40097fcf4687f1b9d33a3ba794e38898bfbab4f /lib
parent44f26c49f966ca842ff9af55468de0b98c44b73e (diff)
Revert "Special table hooks rectified."
This reverts commit 44f26c49f966ca842ff9af55468de0b98c44b73e.
Diffstat (limited to 'lib')
-rw-r--r--lib/lists.c9
-rw-r--r--lib/lists.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/lists.c b/lib/lists.c
index fe2b692b..200576cf 100644
--- a/lib/lists.c
+++ b/lib/lists.c
@@ -109,15 +109,6 @@ add_head(list *l, node *n)
l->head = n;
}
-LIST_INLINE void
-self_link(node *n)
-{
- ASSUME(n->prev == NULL);
- ASSUME(n->next == NULL);
-
- n->prev = n->next = n;
-}
-
/**
* insert_node - insert a node to a list
* @n: a new list node
diff --git a/lib/lists.h b/lib/lists.h
index 64b4a981..479f4ed1 100644
--- a/lib/lists.h
+++ b/lib/lists.h
@@ -78,7 +78,6 @@ typedef union list { /* In fact two overlayed nodes */
#define LIST_INLINE
void add_tail(list *, node *);
void add_head(list *, node *);
-void self_link(node *);
void rem_node(node *);
void add_tail_list(list *, list *);
void init_list(list *);