[Minor] remove unused and unnecessary local variable (#19853)

This commit is contained in:
flywind
2022-06-01 20:44:26 +08:00
committed by GitHub
parent d30c6419a0
commit 4e3eb7414c

View File

@@ -115,7 +115,6 @@ proc reprArray(a: pointer, typ: PNimType,
# We prepend @ to seq, the C backend prepends the pointer to the seq.
result = if typ.kind == tySequence: "@[" else: "["
var len: int = 0
var i: int = 0
{. emit: "`len` = `a`.length;\n" .}
var dereffed: pointer = a