list: remove #if 0 part

This commit is contained in:
Ariadne Conill 2020-07-18 01:59:33 -06:00
parent 22b48586e8
commit a43f8b988d

View file

@ -16,26 +16,6 @@
#include <stdint.h> #include <stdint.h>
#include "libifupdown/list.h" #include "libifupdown/list.h"
#if 0
struct lif_node {
struct lif_node *prev, *next;
void *data;
};
struct lif_list {
struct lif_node *head, *tail;
size_t length;
};
#define LIF_LIST_FOREACH(iter, head) \
for ((iter) = (head); (iter) != NULL; (iter) = (iter)->next)
#define LIF_LIST_FOREACH_SAFE(iter, iter_next, head) \
for ((iter) = (head); (iter) != NULL; (iter) = (iter_next), (iter_next) = (iter) != NULL ? (iter)->next : NULL)
#endif
void void
lif_node_insert(struct lif_node *node, void *data, struct lif_list *list) lif_node_insert(struct lif_node *node, void *data, struct lif_list *list)
{ {