1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: minor cleanup in match_expr() (#13192)

This commit is contained in:
yuyi
2022-01-17 17:26:20 +08:00
committed by GitHub
parent 8de1934f51
commit 851f265a5e

View File

@@ -3776,8 +3776,6 @@ fn (mut g Gen) need_tmp_var_in_match(node ast.MatchExpr) bool {
}
fn (mut g Gen) match_expr(node ast.MatchExpr) {
// println('match expr typ=$it.expr_type')
// TODO
if node.cond_type == 0 {
g.writeln('// match 0')
return