From 099d4fc06f51c4243fea27575621cd34c0632208 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 24 May 2023 11:51:15 +0800 Subject: [PATCH] parser: clean up in parser.v (#18247) --- vlib/v/parser/parser.v | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 866aa7855b..18f0bbbb31 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -3027,27 +3027,6 @@ fn (mut p Parser) index_expr(left ast.Expr, is_gated bool) ast.IndexExpr { } } -fn (mut p Parser) scope_register_it() { - p.scope.register(ast.Var{ - name: 'it' - pos: p.tok.pos() - is_used: true - }) -} - -fn (mut p Parser) scope_register_ab() { - p.scope.register(ast.Var{ - name: 'a' - pos: p.tok.pos() - is_used: true - }) - p.scope.register(ast.Var{ - name: 'b' - pos: p.tok.pos() - is_used: true - }) -} - fn (mut p Parser) dot_expr(left ast.Expr) ast.Expr { p.next() if p.tok.kind == .dollar {