Skip to content

Commit c9235b8

Browse files
committed
cgen: remove commented code blocks using if true {
1 parent af3eda6 commit c9235b8

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

vlib/v/gen/c/comptime.v

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -169,26 +169,6 @@ fn (mut g Gen) comptime_call(mut node ast.ComptimeCall) {
169169
// do not generate anything if the argument lengths don't match
170170
g.writeln('/* skipping ${sym.name}.${m.name} due to mismatched arguments list: node.args=${node.args.len} m.params=${m.params.len} */')
171171
// Adding a println(_SLIT(...)) like this breaks options
172-
/*
173-
g.writeln(
174-
'println(_SLIT("comptime: ${sym.name}.${m.name} has a mismatched arguments list.' +
175-
' The method has ${m.params.len - 1} parameters, but ${node.args.len} arguments were ' +
176-
'provided. \\nargs: ${node.args}\\n${g.file.path}:${node.pos.line_nr}"));')
177-
*/
178-
/*
179-
if true {
180-
println(node.args)
181-
verror('comptime: ${sym.name}.${m.name} has a mismatched arguments list.' +
182-
' The method has ${m.params.len - 1} parameters, but ${node.args.len} arguments were ' +
183-
'provided. ${g.file.path}:${node.pos.line_nr}\n')
184-
}
185-
if true {
186-
eprintln(
187-
'comptime: skipping ${sym.name}.${m.name} due to mismatched arguments list\n' +
188-
'method.params: ${m.params}, args: ${node.args}\n\n')
189-
// verror('expected ${m.params.len - 1} arguments to method ${node.sym.name}.${m.name}, but got ${node.args.len}')
190-
}
191-
*/
192172
return
193173
}
194174
}

0 commit comments

Comments
 (0)