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

ci: run vfmt over vlib/v/gen/c/fn.v

This commit is contained in:
Delyan Angelov 2021-02-05 11:18:29 +02:00
parent 40fff7b56a
commit 8f160ee3ed
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -28,7 +28,7 @@ fn (mut g Gen) gen_fn_decl(node ast.FnDecl, skip bool) {
}
*/
if g.pref.skip_unused {
is_used_by_main := g.table.used_fns[ node.name ]
is_used_by_main := g.table.used_fns[node.name]
// println('> is_used_by_main: $is_used_by_main | node.name: $node.name')
if !is_used_by_main {
g.writeln('// fn $node.name UNUSED')