From a42280fea8ec2628dbbde8fdcfb4003529a50e46 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 20 Jul 2024 18:24:58 -0300 Subject: [PATCH] remove changes --- vlib/v/checker/checker.v | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 62a56423a4b5be..2eaab21bf1f0ee 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -38,8 +38,6 @@ pub const reserved_type_names = ['byte', 'bool', 'char', 'i8', 'i16', 'int', 'i6 pub const reserved_type_names_chk = token.new_keywords_matcher_from_array_trie(reserved_type_names) pub const vroot_is_deprecated_message = '@VROOT is deprecated, use @VMODROOT or @VEXEROOT instead' -const builtin_v_fns = ['error'] - @[heap; minify] pub struct Checker { pub mut: @@ -3872,10 +3870,6 @@ fn (mut c Checker) ident(mut node ast.Ident) ast.Type { // Non-anon-function object (not a call), e.g. `onclick(my_click)` if func := c.table.find_fn(name) { return c.resolve_var_fn(func, mut node, name) - } else if node.name in checker.builtin_v_fns { - if func := c.table.find_fn(node.name) { - return c.resolve_var_fn(func, mut node, node.name) - } } } if node.language == .c {