Re: [PATCH 7/7] cex: replace state-item data structures
Akim Demaille <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.patches |
|---|---|
| Message-ID | <[email protected]> |
FTR, I'm merging these changes in, because bison was not compiling cleanly:
/Users/akim/src/gnu/bison/src/state-item.c:96:1: error: 'hash_pair_remove' defined but not used [-Werror=unused-function]
96 | hash_pair_remove (Hash_table *tab, int key)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
diff --git a/src/state-item.c b/src/state-item.c
index 23561e87..2af5400e 100644
--- a/src/state-item.c
+++ b/src/state-item.c
@@ -92,14 +92,6 @@ hash_pair_insert (Hash_table *tab, int key, bitset val)
assert (res == hp);
}
-static void
-hash_pair_remove (Hash_table *tab, int key)
-{
- hash_pair probe;
- probe.key = key;
- hash_delete (tab, &probe);
-}
-
/* A state_item from a state's id and the offset of the item within
the state. */
state_item *