From a4cb5ffafc050b519f806f74f0160ad48f76bee6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 4 Oct 2025 23:10:43 -0400 Subject: Deprecate `extend` --- src/ast.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/ast.c') diff --git a/src/ast.c b/src/ast.c index 302ced72..dfc1213c 100644 --- a/src/ast.c +++ b/src/ast.c @@ -275,7 +275,6 @@ Text_t ast_to_sexp(ast_t *ast) { T(Use, "(Use ", optional_sexp("var", data.var), " ", quoted_text(data.path), ")"); T(InlineCCode, "(InlineCCode ", ast_list_to_sexp(data.chunks), optional_type_sexp("type", data.type_ast), ")"); T(Deserialize, "(Deserialize ", type_ast_to_sexp(data.type), " ", ast_to_sexp(data.value), ")"); - T(Extend, "(Extend \"", data.name, "\" ", ast_to_sexp(data.body), ")"); default: errx(1, "S-expressions are not implemented for this AST"); #undef T } @@ -681,10 +680,6 @@ void ast_visit(ast_t *ast, void (*visitor)(ast_t *, void *), void *userdata) { ast_visit(Match(ast, Deserialize)->value, visitor, userdata); return; } - case Extend: { - ast_visit(Match(ast, Extend)->body, visitor, userdata); - return; - } default: errx(1, "Visiting is not supported for this AST: %s", Text$as_c_string(ast_to_sexp(ast))); #undef T } -- cgit v1.2.3