aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-29 19:44:54 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-29 19:44:54 +1000
commitd7169ee7ffd45318125dbe3013aadbd1482a3e5f (patch)
tree33399a07278aa9f624d7fecee5912a9823e33e4d /common
parente8fb6b3325ee545312c092f0b103eea2424fce9f (diff)
downloadsway-d7169ee7ffd45318125dbe3013aadbd1482a3e5f.tar.xz
Replace list_empty with a simple alternative
Diffstat (limited to 'common')
-rw-r--r--common/list.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/list.c b/common/list.c
index cab10c1e..39cc10e1 100644
--- a/common/list.c
+++ b/common/list.c
@@ -62,13 +62,6 @@ void list_cat(list_t *list, list_t *source) {
}
}
-void list_empty(list_t *list) {
- list->capacity = 10;
- list->length = 0;
- free(list->items);
- list->items = malloc(sizeof(void*) * list->capacity);
-}
-
void list_qsort(list_t *list, int compare(const void *left, const void *right)) {
qsort(list->items, list->length, sizeof(void *), compare);
}