summary refs log tree commit diff stats
path: root/compiler/sempass2.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2016-08-09 22:54:27 +0800
committerJacek Sieka <arnetheduck@gmail.com>2016-08-09 22:54:27 +0800
commit3cd4cf4320cba2795d2a9021c55a20cbbe2b04ae (patch)
treeb7e24066afbe161455c3bd50797535f0a05434fc /compiler/sempass2.nim
parent981a8950c61afb7814976333945b53f1799ad81a (diff)
downloadNim-3cd4cf4320cba2795d2a9021c55a20cbbe2b04ae.tar.gz
remove unused stuff
Diffstat (limited to 'compiler/sempass2.nim')
-rw-r--r--compiler/sempass2.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim
index 120c4c774..72f289e4e 100644
--- a/compiler/sempass2.nim
+++ b/compiler/sempass2.nim
@@ -268,10 +268,6 @@ proc createTag(n: PNode): PNode =
     result.typ = sysTypeFromName"TEffect"
   if not n.isNil: result.info = n.info
 
-proc createAnyGlobal(n: PNode): PNode =
-  result = newSymNode(anyGlobal)
-  result.info = n.info
-
 proc addEffect(a: PEffects, e: PNode, useLineInfo=true) =
   assert e.kind != nkRaiseStmt
   var aa = a.exc
@@ -793,9 +789,6 @@ proc track(tracked: PEffects, n: PNode) =
 proc subtypeRelation(spec, real: PNode): bool =
   result = safeInheritanceDiff(real.excType, spec.typ) <= 0
 
-proc symbolPredicate(spec, real: PNode): bool =
-  result = real.sym.id == spec.sym.id
-
 proc checkRaisesSpec(spec, real: PNode, msg: string, hints: bool;
                      effectPredicate: proc (a, b: PNode): bool {.nimcall.}) =
   # check that any real exception is listed in 'spec'; mark those as used;