diff options
author | Marvin Borner | 2023-05-27 10:07:24 +0200 |
---|---|---|
committer | Marvin Borner | 2023-05-27 10:07:24 +0200 |
commit | abf68e0ad6c9f6d6cd14693894c609faca925e22 (patch) | |
tree | 0ac1a7f74f1543d8343ed346c577dbf1cda93bfe /src/map.c | |
parent | 337ec809393b709b36ca7b64d77489ae4bc1af1c (diff) |
Moved term logic
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; |