bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Code cleanup.


From: Joel E. Denny
Subject: [PATCH] Code cleanup.
Date: Thu, 17 Dec 2009 01:18:41 -0500 (EST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

I pushed this to master and branch-2.5.

>From 387b4d504728391605f751e74a36fb7d0d441b19 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Thu, 17 Dec 2009 01:09:09 -0500
Subject: [PATCH] Code cleanup.

* src/symtab.c, src/symtab.h (symbol_class_get_string): Remove
function, which is no longer used.
---
 ChangeLog    |    6 ++++++
 src/symtab.c |   18 ------------------
 src/symtab.h |    3 ---
 3 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2817f11..2926da7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-17  Joel E. Denny  <address@hidden>
+
+       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  <address@hidden>
 
        Add gcc's -Wundef to test suite and fix another warning from it.
diff --git a/src/symtab.c b/src/symtab.c
index ce29dfc..ebdf04c 100644
--- a/src/symtab.c
+++ b/src/symtab.c
@@ -219,24 +219,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.  |
 `-----------------------------------------*/
diff --git a/src/symtab.h b/src/symtab.h
index b093af3..6204d90 100644
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -144,9 +144,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);
 
-- 
1.5.4.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]