From 1a79bf050e05057913bf374444d3f305fb1666cb Mon Sep 17 00:00:00 2001 From: omicron Date: Thu, 17 Apr 2025 15:10:36 +0200 Subject: [PATCH] Remove unused ast_node_free_value Values are all inside the ast struct and require no cleanup other than freeing the ast struct. --- src/ast.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ast.c b/src/ast.c index d9275f7..4691264 100644 --- a/src/ast.c +++ b/src/ast.c @@ -17,10 +17,6 @@ error_t *ast_node_alloc(ast_node_t **output) { return nullptr; } -void ast_node_free_value(ast_node_t *node) { - // TODO: decide how value ownership will work and clean it up here -} - void ast_node_free(ast_node_t *node) { if (node == nullptr) return; @@ -30,8 +26,6 @@ void ast_node_free(ast_node_t *node) { free(node->children); } - ast_node_free_value(node); - memset(node, 0, sizeof(ast_node_t)); free(node); }