Code cleanup.
authorJoel E. Denny <jdenny@clemson.edu>
Thu, 17 Dec 2009 06:09:09 +0000 (01:09 -0500)
committerJoel E. Denny <jdenny@clemson.edu>
Thu, 17 Dec 2009 06:11:47 +0000 (01:11 -0500)
* src/symtab.c, src/symtab.h (symbol_class_get_string): Remove
function, which is no longer used.
(cherry picked from commit 387b4d504728391605f751e74a36fb7d0d441b19)

ChangeLog
src/symtab.c
src/symtab.h

index 74dacea..e70d090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-17  Joel E. Denny  <jdenny@clemson.edu>
+
+       Code cleanup.
+       * src/symtab.c, src/symtab.h (symbol_class_get_string): Remove
+       function, which is no longer used.
+
 2009-12-16  Joel E. Denny  <jdenny@clemson.edu>
 
        Add gcc's -Wundef to test suite and fix another warning from it.
index a263185..fd1e481 100644 (file)
@@ -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.  |
 `-----------------------------------------*/
index 882da71..feb78fb 100644 (file)
@@ -133,9 +133,6 @@ void symbol_make_alias (symbol *sym, symbol *str, location loc);
     Do nothing if passed 0 as \c type_name.  */
 void symbol_type_set (symbol *sym, uniqstr type_name, location loc);
 
-/** Get the \c class string associated with \c sym.  */
-const char *symbol_class_get_string (symbol *sym);
-
 /** Set the \c destructor associated with \c sym.  */
 void symbol_destructor_set (symbol *sym, code_props const *destructor);