mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
preprocessor: Remove dead code _token_list_length
As gcc noticed, this function is not currently being used. Good-bye.
This commit is contained in:
parent
45cbc08438
commit
726faddda2
1 changed files with 0 additions and 18 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue