Skip to content

Commit

Permalink
ast: minor simplification of new_table() (#18795)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jul 6, 2023
1 parent 8f7f2c8 commit b3f89e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vlib/v/ast/table.v
Expand Up @@ -98,16 +98,12 @@ pub fn new_table() &Table {
}
t.register_builtin_type_symbols()
t.is_fmt = true
set_global_table(t)
global_table = t
return t
}

__global global_table = &Table(unsafe { nil })

pub fn set_global_table(t &Table) {
global_table = t
}

// used to compare fn's & for naming anon fn's
pub fn (t &Table) fn_type_signature(f &Fn) string {
mut sig := ''
Expand Down

0 comments on commit b3f89e1

Please sign in to comment.