From dff6b6372558769665bd78166f2cd5eb671bcddc Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Tue, 15 Jan 2019 03:24:41 -0500 Subject: Remove list.c This replaces all occurrences of `list_t` with `wl_list` to eliminate the need for `list.c` --- include/list.h | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 include/list.h (limited to 'include') diff --git a/include/list.h b/include/list.h deleted file mode 100644 index 7a5984a..0000000 --- a/include/list.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef _SWAY_LIST_H -#define _SWAY_LIST_H - -typedef struct { - int capacity; - int length; - void **items; -} list_t; - -list_t *create_list(void); -void list_free(list_t *list); -void list_add(list_t *list, void *item); -void list_insert(list_t *list, int index, void *item); -void list_del(list_t *list, int index); - -/* Calls `free` for each item in the list, then frees the list. - * Do not use this to free lists of primitives or items that require more - * complicated deallocation code. - */ -void list_free_items_and_destroy(list_t *list); -#endif -- cgit v1.2.3