summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-06-22 15:50:38 -0700
committerCarl Worth <[email protected]>2010-06-23 16:13:31 -0700
commit726faddda2d69ea0f81da8e81c6a2e0f3fb6fdda (patch)
tree74badfe376d109dc48b56208034ebe4606e4b9a5
parent45cbc08438227d5cc702c271a4c9afd3ba017b63 (diff)
preprocessor: Remove dead code _token_list_length
As gcc noticed, this function is not currently being used. Good-bye.
-rw-r--r--glcpp/glcpp-parse.y18
1 files changed, 0 insertions, 18 deletions
diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y
index 710ede640a9..88a30f89755 100644
--- a/glcpp/glcpp-parse.y
+++ b/glcpp/glcpp-parse.y
@@ -93,9 +93,6 @@ _token_list_append (token_list_t *list, token_t *token);
static void
_token_list_append_list (token_list_t *list, token_list_t *tail);
-static int
-_token_list_length (token_list_t *list);
-
static active_list_t *
_active_list_push (active_list_t *list,
const char *identifier,
@@ -731,21 +728,6 @@ _token_list_trim_trailing_space (token_list_t *list)
}
}
-static int
-_token_list_length (token_list_t *list)
-{
- int length = 0;
- token_node_t *node;
-
- if (list == NULL)
- return 0;
-
- for (node = list->head; node; node = node->next)
- length++;
-
- return length;
-}
-
static void
_token_print (char **out, token_t *token)
{