From: Carl Worth Date: Tue, 22 Jun 2010 22:34:59 +0000 (-0700) Subject: preprocessor: Remove dead code _string_list_append_list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45cbc08438227d5cc702c271a4c9afd3ba017b63;p=mesa.git preprocessor: Remove dead code _string_list_append_list As gcc noticed, this function is not currently being used. Good-bye. --- diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y index 2ce8632a28d..710ede640a9 100644 --- a/glcpp/glcpp-parse.y +++ b/glcpp/glcpp-parse.y @@ -55,9 +55,6 @@ _string_list_create (void *ctx); static void _string_list_append_item (string_list_t *list, const char *str); -static void -_string_list_append_list (string_list_t *list, string_list_t *tail); - static int _string_list_contains (string_list_t *list, const char *member, int *index); @@ -503,18 +500,6 @@ _string_list_create (void *ctx) return list; } -void -_string_list_append_list (string_list_t *list, string_list_t *tail) -{ - if (list->head == NULL) { - list->head = tail->head; - } else { - list->tail->next = tail->head; - } - - list->tail = tail->tail; -} - void _string_list_append_item (string_list_t *list, const char *str) {