commit 75495f8338752a80aad4bce172bd0ae240f9a2d1
parent 04a74da695ff47620457009b90c8a59fb2f0ecbf
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 20 Jul 2021 14:50:36 -0700
Remove unused item_prev and item_next functions
The item next and prev members should be accessed directly. Since
find functions need the function pointers they are implemented
there. While it might make more sense to have them in item.c they
are not.
Diffstat:
1 file changed, 0 insertions(+), 16 deletions(-)
diff --git a/aps/item.c b/aps/item.c
@@ -80,19 +80,3 @@ item_unlink(struct item *item)
if (item->next)
item->next->prev = item->prev;
}
-
-struct item *
-item_next(struct item *item, struct item *end)
-{
- if (item == end)
- return NULL;
- return item->next;
-}
-
-struct item *
-item_prev(struct item *item, struct item *end)
-{
- if (item == end)
- return NULL;
- return item->prev;
-}