From: Alejandro del Castillo Date: Wed, 10 Feb 2016 22:27:35 +0000 (-0600) Subject: str_list_push: remove unused function X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=980cfb2e931935a2bd34addccd073811ad1db8e7;p=project%2Fopkg-lede.git str_list_push: remove unused function Signed-off-by: Alejandro del Castillo --- diff --git a/libopkg/str_list.c b/libopkg/str_list.c index d93f13a..79bed03 100644 --- a/libopkg/str_list.c +++ b/libopkg/str_list.c @@ -61,11 +61,6 @@ void str_list_append(str_list_t * list, char *data) void_list_append((void_list_t *) list, xstrdup(data)); } -void str_list_push(str_list_t * list, char *data) -{ - void_list_push((void_list_t *) list, xstrdup(data)); -} - str_list_elt_t *str_list_pop(str_list_t * list) { return (str_list_elt_t *) void_list_pop((void_list_t *) list); diff --git a/libopkg/str_list.h b/libopkg/str_list.h index e948662..54708fb 100644 --- a/libopkg/str_list.h +++ b/libopkg/str_list.h @@ -32,7 +32,6 @@ void str_list_init(str_list_t * list); void str_list_deinit(str_list_t * list); void str_list_append(str_list_t * list, char *data); -void str_list_push(str_list_t * list, char *data); str_list_elt_t *str_list_pop(str_list_t * list); void str_list_remove(str_list_t * list, str_list_elt_t ** iter); void str_list_remove_elt(str_list_t * list, const char *target_str);