summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-13 12:09:54 +0530
committerNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-13 12:11:56 +0530
commit1f1d7b1088fd258a4ce659a3c942290a3c6b3a85 (patch)
tree4053e5a50720a113a6418730f0ccaeebb07ec00c /compiler/semstmts.nim
parent76c214a2e95787f15a704b395de01261b8e003e3 (diff)
downloadNim-1f1d7b1088fd258a4ce659a3c942290a3c6b3a85.tar.gz
Fix semRecordCase
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index aec03b492..d81410891 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -95,13 +95,6 @@ proc semWhile(c: PContext, n: PNode; flags: TExprFlags): PNode =
   elif efInTypeof in flags:
     result.typ = n[1].typ
 
-proc toCover(c: PContext, t: PType): BiggestInt =
-  let t2 = skipTypes(t, abstractVarRange-{tyTypeDesc})
-  if t2.kind == tyEnum and enumHasHoles(t2):
-    result = sonsLen(t2.n)
-  else:
-    result = lengthOrd(c.config, skipTypes(t, abstractVar-{tyTypeDesc}))
-
 proc semProc(c: PContext, n: PNode): PNode
 
 proc semExprBranch(c: PContext, n: PNode; flags: TExprFlags = {}): PNode =