From 45cbc08438227d5cc702c271a4c9afd3ba017b63 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 22 Jun 2010 15:34:59 -0700 Subject: [PATCH] preprocessor: Remove dead code _string_list_append_list As gcc noticed, this function is not currently being used. Good-bye. --- glcpp/glcpp-parse.y | 15 --------------- 1 file changed, 15 deletions(-) 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) { -- 2.30.2