From ec2be68120e48c75b0acd2bdfb5cc8d931c70cfd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Jun 2023 13:29:21 +0200 Subject: Removed parenting I think reducing should work without parenting.. I'm not sure though. I'm confused. --- src/map.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/map.c') diff --git a/src/map.c b/src/map.c index c36354d..e37217d 100644 --- a/src/map.c +++ b/src/map.c @@ -7,6 +7,7 @@ #include #include #include +#include static struct hashmap *all_terms; @@ -60,16 +61,7 @@ void map_dump(struct hashmap *map) struct term *term = *(struct term **)iter_val; fprintf(stderr, "%d\t%ld\t", term->type, term->refs); term_print(term); - fprintf(stderr, "\t{"); - - size_t jiter = 0; - void *jiter_val; - while (hashmap_iter(term->parents, &jiter, &jiter_val)) { - struct term *parent = *(struct term **)jiter_val; - term_print(parent); - fprintf(stderr, ", "); - } - fprintf(stderr, "}\n"); + fprintf(stderr, "\n"); } fprintf(stderr, "---\n\n"); } -- cgit v1.2.3