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/typecheck.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/typecheck.c') diff --git a/src/typecheck.c b/src/typecheck.c index 906236c3..429a162f 100644 --- a/src/typecheck.c +++ b/src/typecheck.c @@ -929,10 +929,6 @@ type_t *get_type(env_t *env, ast_t *ast) { } case MethodCall: { DeclareMatch(call, ast, MethodCall); - - if (streq(call->name, "serialized")) // Data serialization - return Type(ListType, Type(ByteType)); - type_t *self_value_t = get_type(env, call->self); if (!self_value_t) code_err(call->self, "Couldn't get the type of this value"); self_value_t = value_type(self_value_t); @@ -1509,7 +1505,6 @@ type_t *get_type(env_t *env, ast_t *ast) { return type_ast ? parse_type_ast(env, type_ast) : Type(VoidType); } case Unknown: code_err(ast, "I can't figure out the type of: ", ast_to_sexp_str(ast)); - case Deserialize: return parse_type_ast(env, Match(ast, Deserialize)->type); case ExplicitlyTyped: return Match(ast, ExplicitlyTyped)->type; } #ifdef __GNUC__ -- cgit v1.2.3