[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
commit 4e3eb7414c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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