diff options
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -9,20 +9,6 @@ static struct hashmap *all_terms; -static void deref_term(struct term *term) -{ - if (term->type == ABS) { - deref_term(term->u.abs.term); - } else if (term->type == APP) { - deref_term(term->u.app.lhs); - deref_term(term->u.app.rhs); - } - - // TODO: remove from hashmap? - if (--term->refs == 0) - free(term); -} - static void hashmap_free_term(void *item) { struct term *term = *(struct term **)item; |