From 68037c4d220302a9f7ab250b3a220a5f64217244 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 4 May 2014 18:54:13 +0200 Subject: strip unneded parts from giblib, part 1 Not all functions were examined yet. Also TODO: * check strdup / malloc calls (some are apparently unchecked in giblib), maybe use estrdup / emalloc for those * Check includes and update dependency list if needed --- src/gib_list.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/gib_list.c') diff --git a/src/gib_list.c b/src/gib_list.c index bb16d52..1c313ba 100644 --- a/src/gib_list.c +++ b/src/gib_list.c @@ -75,6 +75,7 @@ gib_list_free_and_data(gib_list * l) return; } +#if 0 gib_list * gib_list_dup(gib_list * list) { @@ -125,6 +126,7 @@ gib_list_dup_special(gib_list * list, } return (ret); } +#endif gib_list * gib_list_add_front(gib_list * root, void *data) @@ -159,6 +161,7 @@ gib_list_add_end(gib_list * root, void *data) } } +#if 0 gib_list * gib_list_add_at_pos(gib_list * root, int pos, void *data) { @@ -216,6 +219,7 @@ gib_list_move_down_by_one(gib_list * root, gib_list * l) return (root); } +#endif unsigned char @@ -227,6 +231,7 @@ gib_list_has_more_than_one_item(gib_list * root) return (0); } +#if 0 gib_list * gib_list_pop_to_end(gib_list * root, gib_list * l) { @@ -236,6 +241,7 @@ gib_list_pop_to_end(gib_list * root, gib_list * l) return (root); } +#endif gib_list * gib_list_cat(gib_list * root, gib_list * l) @@ -478,6 +484,7 @@ gib_list_sort_merge(gib_list * l1, gib_list * l2, gib_compare_fn cmp) return (list.next); } +#if 0 gib_list * gib_list_nth(gib_list * root, unsigned int num) { @@ -495,6 +502,7 @@ gib_list_nth(gib_list * root, unsigned int num) } return (root); } +#endif gib_list * gib_list_foreach(gib_list *root, void (*fe_func)(gib_list *node, void *data), void *data) @@ -572,7 +580,7 @@ gib_string_split(const char *string, const char *delimiter) return string_list; } - +#if 0 char * gib_strjoin(const char *separator, ...) { @@ -621,4 +629,4 @@ gib_strjoin(const char *separator, ...) return string; } - +#endif -- cgit v1.2.3