OSDN Git Service

Remove unused function _print_string_list
authorCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:08:19 +0000 (14:08 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:08:19 +0000 (14:08 -0700)
The only good dead code is non-existing dead code.

glcpp-parse.y

index 773db93..79a8ec2 100644 (file)
@@ -50,9 +50,6 @@ _expand_function_macro (glcpp_parser_t *parser,
                        const char *identifier,
                        argument_list_t *arguments);
 
-void
-_print_string_list (string_list_t *list);
-
 string_list_t *
 _string_list_create (void *ctx);
 
@@ -396,21 +393,6 @@ _string_list_length (string_list_t *list)
        return length;
 }
 
-void
-_print_string_list (string_list_t *list)
-{
-       string_node_t *node;
-
-       if (list == NULL)
-               return;
-
-       for (node = list->head; node; node = node->next) {
-               printf ("%s", node->str);
-               if (node->next)
-                       printf (" ");
-       }
-}
-
 argument_list_t *
 _argument_list_create (void *ctx)
 {