X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b143f4048fe39451ec739d956b4ca1f4fd8e694d..8b9e021fd1e3b03568d4b2167c47f33ba822a1c8:/src/symtab.c?ds=sidebyside diff --git a/src/symtab.c b/src/symtab.c index ce29dfc9..54ab0569 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -1,8 +1,7 @@ /* Symbol table manager for Bison. - Copyright (C) 1984, 1989, 2000, 2001, 2002, 2004, 2005, 2006, 2007, - 2008, 2009 - Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 2000-2002, 2004-2010 Free Software + Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -219,24 +218,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. | `-----------------------------------------*/