remove deprecated procs (#12535)

This commit is contained in:
Andreas Rumpf 2019-11-05 11:05:46 +01:00 • committed by Miran
commit 3ba3307d61
39 changed files with 111 additions and 567 deletions

View file

@ -8,7 +8,7 @@ proc convertReturns(node, retFutureSym: NimNode): NimNode {.compileTime.} =
result = newCall(newIdentNode("complete"), retFutureSym, node[0])
else:
result = node
for i in 0 .. <node.len:
for i in 0 ..< node.len:
result[i] = convertReturns(node[i], retFutureSym)
macro async2(prc: untyped): untyped =
@ -51,7 +51,7 @@ macro async2(prc: untyped): untyped =
result = prc
# Remove the 'closure' pragma.
for i in 0 .. <result[4].len:
for i in 0 ..< result[4].len:
if result[4][i].ident == !"async":
result[4].del(i)