summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2022-06-01 20:44:26 +0800
committerGitHub <noreply@github.com>2022-06-01 14:44:26 +0200
commit4e3eb7414cfedad3d29b2eeab451de4206d91df4 (patch)
treeeb21f6b3a262cd70d1672b15b657ded727762ba1 /lib/system
parentd30c6419a051a815e3fdb354ac79522f17e55bda (diff)
downloadNim-4e3eb7414cfedad3d29b2eeab451de4206d91df4.tar.gz
[Minor] remove unused and unnecessary local variable (#19853)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/reprjs.nim1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/system/reprjs.nim b/lib/system/reprjs.nim
index 28935a4ef..f5a0ed3ea 100644
--- a/lib/system/reprjs.nim
+++ b/lib/system/reprjs.nim
@@ -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