summary refs log tree commit diff stats
path: root/compiler/semstmts.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/semstmts.nim
parent981a8950c61afb7814976333945b53f1799ad81a (diff)
downloadNim-3cd4cf4320cba2795d2a9021c55a20cbbe2b04ae.tar.gz
remove unused stuff
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 5d1770a32..c1f06a5c6 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1135,11 +1135,6 @@ type
   TProcCompilationSteps = enum
     stepRegisterSymbol,
     stepDetermineType,
-    stepCompileBody
-
-proc isForwardDecl(s: PSym): bool =
-  internalAssert s.kind == skProc
-  result = s.ast[bodyPos].kind != nkEmpty
 
 proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
                 validPragmas: TSpecialWords,
@@ -1177,8 +1172,6 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
     s.ast = n
     #s.scope = c.currentScope
 
-    # if typeIsDetermined: assert phase == stepCompileBody
-    # else: assert phase == stepDetermineType
   # before compiling the proc body, set as current the scope
   # where the proc was declared
   let oldScope = c.currentScope
@@ -1560,8 +1553,3 @@ proc semStmtList(c: PContext, n: PNode, flags: TExprFlags): PNode =
 proc semStmt(c: PContext, n: PNode): PNode =
   # now: simply an alias:
   result = semExprNoType(c, n)
-
-proc semStmtScope(c: PContext, n: PNode): PNode =
-  openScope(c)
-  result = semStmt(c, n)
-  closeScope(c)