Skip to content

Commit

Permalink
remove changes
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 20, 2024
1 parent cf7bd36 commit a42280f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a42280f

Please sign in to comment.