From c74fba540448f1d4b1aec4de8f3d9ffc395fdde0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 5 Oct 2025 18:05:07 -0400 Subject: Deprecate `deserialize` keyword and `.serialized()` method --- src/formatter/formatter.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/formatter') diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index 41b1c4aa..55fff920 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -366,11 +366,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) { Text_t space = op_tightness[ast->tag] >= op_tightness[Multiply] ? EMPTY_TEXT : Text(" "); return Texts(lhs, space, Text$from_str(binop_info[ast->tag].operator), space, rhs); } - /*inline*/ case Deserialize: { - DeclareMatch(deserialize, ast, Deserialize); - return Texts("deserialize(", fmt_inline(deserialize->value, comments), " -> ", format_type(deserialize->type), - ")"); - } /*inline*/ case Use: { DeclareMatch(use, ast, Use); // struct { @@ -806,12 +801,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { Text_t space = op_tightness[ast->tag] >= op_tightness[Multiply] ? EMPTY_TEXT : Text(" "); return Texts(lhs, space, Text$from_str(binop_info[ast->tag].operator), space, rhs); } - /*multiline*/ case Deserialize: { - if (inlined_fits) return inlined; - DeclareMatch(deserialize, ast, Deserialize); - return Texts("deserialize(", fmt(deserialize->value, comments, indent), " -> ", format_type(deserialize->type), - ")"); - } /*multiline*/ case Use: { assert(inlined.length > 0); return inlined; -- cgit v1.2.3