remove unused stuff

This commit is contained in:
Jacek Sieka 2016-08-09 22:54:27 +08:00
commit 3cd4cf4320
27 changed files with 5 additions and 406 deletions

View file

@ -584,13 +584,6 @@ proc transformFor(c: PTransf, n: PNode): PTransNode =
popTransCon(c)
# echo "transformed: ", stmtList.PNode.renderTree
proc getMagicOp(call: PNode): TMagic =
if call.sons[0].kind == nkSym and
call.sons[0].sym.kind in {skProc, skMethod, skConverter}:
result = call.sons[0].sym.magic
else:
result = mNone
proc transformCase(c: PTransf, n: PNode): PTransNode =
# removes `elif` branches of a case stmt
# adds ``else: nil`` if needed for the code generator