ast: remove redundant InfixExpr.str() (#7993)

pull/8008/head
Lukas Neubert 2021-01-10 11:19:14 +01:00 committed by GitHub
parent 0e016baa34
commit 31753f581f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -111,10 +111,6 @@ pub fn (node &FnDecl) stringify(t &table.Table, cur_mod string, m2a map[string]s
return f.str() return f.str()
} }
pub fn (x &InfixExpr) str() string {
return '$x.left.str() $x.op.str() $x.right.str()'
}
// Expressions in string interpolations may have to be put in braces if they // Expressions in string interpolations may have to be put in braces if they
// are non-trivial, if they would interfere with the next character or if a // are non-trivial, if they would interfere with the next character or if a
// format specification is given. In the latter case // format specification is given. In the latter case