aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-16 08:28:31 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-16 08:28:31 +0200
commit8edffa1263dc1660c8c383467974933179931cfa (patch)
treea6734440ae30f936bd09fd90ffaf47d507c98420 /src
parent2841470fd34a6ed41df94f925bbeb95819bfca9a (diff)
downloadek-8edffa1263dc1660c8c383467974933179931cfa.tar.gz
ek-8edffa1263dc1660c8c383467974933179931cfa.zip
avoid resets
Diffstat (limited to 'src')
-rw-r--r--src/actualize.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/actualize.c b/src/actualize.c
index 5aee29b..ebbffbb 100644
--- a/src/actualize.c
+++ b/src/actualize.c
@@ -729,21 +729,6 @@ static int should_implement_list(struct scope *scope, struct ast *params,
return 0;
}
-static int _reset(struct ast *node, void *data)
-{
- UNUSED(data);
- ast_clear_flags(node, AST_FLAG_INIT | AST_FLAG_ACTUAL);
- /* clear type info */
- node->t = NULL;
- node->scope = NULL;
- return 0;
-}
-
-static int reset(struct ast *body)
-{
- return ast_visit(_reset, NULL, body, NULL);
-}
-
static int expand_type(struct scope *scope, struct ast *expd,
struct ast *params, struct type *types)
{
@@ -756,8 +741,6 @@ static int expand_type(struct scope *scope, struct ast *expd,
default: abort();
}
- reset(expd);
-
foreach_node(n, params) {
struct ast *p = clone_ast(n);
var_type(p) = clone_type(types);