summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-25 16:50:54 +0200
committerGitHub <noreply@github.com>2016-08-25 16:50:54 +0200
commit10f445da89ecd6e07996479694e694ab23db0262 (patch)
tree02dbceb9c8434ca5481ffaed050ec70a36364ce6 /compiler/transf.nim
parent1e134aed49ea74fc6846ce875eca9c4516724439 (diff)
parent618e264b5812f1b215fab9672300f492275c4f38 (diff)
downloadNim-10f445da89ecd6e07996479694e694ab23db0262.tar.gz
Merge pull request #4592 from arnetheduck/compiler-cleanup
Compiler cleanup
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index fc400c524..5cd5e298b 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -594,13 +594,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