summaryrefslogtreecommitdiff
path: root/upb/table.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-07-16 14:14:13 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-07-16 14:14:13 -0700
commitdaf36f07473b627ef634f8f66379a45ac99d32fc (patch)
tree96212a3f25627b89ea7a1bab6fa576252c045a2e /upb/table.h
parentb6ca2718c8e9fcb601054b76af96e22920a2070e (diff)
Get rid of upb_symtabtxn.
This type was nothing but a map of defs. We can as easily just pass an array of defs into upb_symtab_add().
Diffstat (limited to 'upb/table.h')
-rw-r--r--upb/table.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/upb/table.h b/upb/table.h
index 376465b..bd9a5d4 100644
--- a/upb/table.h
+++ b/upb/table.h
@@ -107,12 +107,6 @@ void upb_inttable_insert(upb_inttable *t, uint32_t key, const void *val);
// functions.
void upb_strtable_insert(upb_strtable *t, const char *key, const void *val);
void upb_inttable_compact(upb_inttable *t);
-INLINE void upb_strtable_clear(upb_strtable *t) {
- // TODO: improve.
- uint16_t entry_size = t->t.entry_size;
- upb_strtable_free(t);
- upb_strtable_init(t, 8, entry_size);
-}
INLINE uint32_t _upb_inttable_bucket(upb_inttable *t, uint32_t k) {
uint32_t bucket = k & t->t.mask; // Identity hash for ints.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback