From 1ad417734e1d0f19a0ab808c77d0595548ad3f2e Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 22 Mar 2020 08:59:44 +0100 Subject: [PATCH] memory: remove if false --- vlib/v/gen/cgen.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 77aedd0c2d..7b1564b207 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -550,14 +550,14 @@ fn (g mut Gen) gen_fn_decl(it ast.FnDecl) { g.stmt(stmt) } // //////////// - if g.autofree && false { + if g.autofree { scope := g.file.scope.innermost(it.pos.pos - 1) for _, var in scope.vars { sym := g.table.get_type_symbol(var.typ) if sym.kind == .array && !table.type_is_optional(var.typ) { g.writeln('array_free($var.name); // autofree') } - println(var.name) + // println(var.name) } } // /////////