mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
Code cleanup.
* src/symtab.c, src/symtab.h (symbol_class_get_string): Remove
function, which is no longer used.
(cherry picked from commit 387b4d5047)
This commit is contained in:
18
src/symtab.c
18
src/symtab.c
@@ -184,24 +184,6 @@ symbol_type_set (symbol *sym, uniqstr type_name, location loc)
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------.
|
||||
| Get the CLASS associated with SYM. |
|
||||
`-----------------------------------*/
|
||||
|
||||
const char *
|
||||
symbol_class_get_string (symbol *sym)
|
||||
{
|
||||
if (sym->class)
|
||||
{
|
||||
if (sym->class == token_sym)
|
||||
return "terminal";
|
||||
else if (sym->class == nterm_sym)
|
||||
return "nonterminal";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
|
||||
/*-----------------------------------------.
|
||||
| Set the DESTRUCTOR associated with SYM. |
|
||||
`-----------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user