Remove unused procs getProcSym, getOpSym.
This commit is contained in:
parent
5e0a062a90
commit
e1a5732838
1 changed files with 0 additions and 11 deletions
|
|
@ -74,17 +74,6 @@ proc sameTree*(a, b: PNode): bool =
|
||||||
if not sameTree(a.sons[i], b.sons[i]): return
|
if not sameTree(a.sons[i], b.sons[i]): return
|
||||||
result = true
|
result = true
|
||||||
|
|
||||||
proc getProcSym*(call: PNode): PSym =
|
|
||||||
result = call.sons[0].sym
|
|
||||||
|
|
||||||
proc getOpSym*(op: PNode): PSym =
|
|
||||||
if op.kind notin {nkCall, nkHiddenCallConv, nkCommand, nkCallStrLit}:
|
|
||||||
result = nil
|
|
||||||
else:
|
|
||||||
if sonsLen(op) <= 0: internalError(op.info, "getOpSym")
|
|
||||||
elif op.sons[0].kind == nkSym: result = op.sons[0].sym
|
|
||||||
else: result = nil
|
|
||||||
|
|
||||||
proc getMagic*(op: PNode): TMagic =
|
proc getMagic*(op: PNode): TMagic =
|
||||||
case op.kind
|
case op.kind
|
||||||
of nkCallKinds:
|
of nkCallKinds:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue