Remove (unused) swapOperands proc.
This commit is contained in:
parent
8f86e0f86b
commit
701109e8c1
1 changed files with 0 additions and 5 deletions
|
|
@ -135,11 +135,6 @@ proc flattenTree*(root: PNode, op: TMagic): PNode =
|
||||||
addSon(result, copyNode(root.sons[0]))
|
addSon(result, copyNode(root.sons[0]))
|
||||||
flattenTreeAux(result, root, op)
|
flattenTreeAux(result, root, op)
|
||||||
|
|
||||||
proc swapOperands*(op: PNode) =
|
|
||||||
var tmp = op.sons[1]
|
|
||||||
op.sons[1] = op.sons[2]
|
|
||||||
op.sons[2] = tmp
|
|
||||||
|
|
||||||
proc isRange*(n: PNode): bool {.inline.} =
|
proc isRange*(n: PNode): bool {.inline.} =
|
||||||
if n.kind in nkCallKinds:
|
if n.kind in nkCallKinds:
|
||||||
if n[0].kind == nkIdent and n[0].ident.id == ord(wDotDot) or
|
if n[0].kind == nkIdent and n[0].ident.id == ord(wDotDot) or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue