diff options
author | Matthew Baulch <baulch.matt@gmail.com> | 2016-08-27 19:40:48 +1000 |
---|---|---|
committer | Matthew Baulch <baulch.matt@gmail.com> | 2016-08-27 19:40:48 +1000 |
commit | e1a5732838e89a131787c25e2fc89a5097ef65a0 (patch) | |
tree | 102571b5c9c3432a0b1ecb802f6bfacbfe8a1481 /compiler | |
parent | 5e0a062a9094c447cf9d102de92f1154eb6bc755 (diff) | |
download | Nim-e1a5732838e89a131787c25e2fc89a5097ef65a0.tar.gz |
Remove unused procs getProcSym, getOpSym.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/trees.nim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/trees.nim b/compiler/trees.nim index 832b206d9..ece102c13 100644 --- a/compiler/trees.nim +++ b/compiler/trees.nim @@ -74,17 +74,6 @@ proc sameTree*(a, b: PNode): bool = if not sameTree(a.sons[i], b.sons[i]): return 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 = case op.kind of nkCallKinds: |