[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unused function in src/tables.c
From: |
Roland McGrath |
Subject: |
unused function in src/tables.c |
Date: |
Mon, 14 Mar 2005 17:00:51 -0800 |
In bison-2.0 (and current CVS), this function is unused.
GCC doesn't warn because it's an inline, but some other compilers might.
2005-03-14 Roland McGrath <address@hidden>
* src/tables.c (state_number_to_vector_number): Function removed.
Index: src/tables.c
===================================================================
RCS file: /cvsroot/bison/bison/src/tables.c,v
retrieving revision 1.25
diff -B -b -p -u -r1.25 tables.c
--- src/tables.c 17 Dec 2004 20:29:19 -0000 1.25
+++ src/tables.c 15 Mar 2005 00:58:32 -0000
@@ -1,6 +1,6 @@
/* Output the generated parsing program for Bison.
- Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001, 2002, 2003, 2004
+ Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -45,12 +45,6 @@
typedef int vector_number;
static inline vector_number
-state_number_to_vector_number (state_number s)
-{
- return s;
-}
-
-static inline vector_number
symbol_number_to_vector_number (symbol_number sym)
{
return state_number_as_int (nstates) + sym - ntokens;
- unused function in src/tables.c,
Roland McGrath <=