summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-14 07:59:08 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-14 07:59:44 +0100
commit79b1eafa59983509a2eb61072974de8dfc05f196 (patch)
tree97592fd12a350a85f779cdf191a7989f987fe9d3 /lib
parent62ab338900b6f0e80c10a81792301789a6465e20 (diff)
downloadNim-79b1eafa59983509a2eb61072974de8dfc05f196.tar.gz
gc: removed dead code
Diffstat (limited to 'lib')
-rw-r--r--lib/system/gc2.nim3
-rw-r--r--lib/system/gc_ms.nim3
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/system/gc2.nim b/lib/system/gc2.nim
index 458cfda49..8fda6f6b2 100644
--- a/lib/system/gc2.nim
+++ b/lib/system/gc2.nim
@@ -136,9 +136,6 @@ proc usrToCell(usr: pointer): PCell {.inline.} =
   # convert pointer to userdata to object (=pointer to refcount)
   result = cast[PCell](cast[ByteAddress](usr)-%ByteAddress(sizeof(Cell)))
 
-proc canBeCycleRoot(c: PCell): bool {.inline.} =
-  result = ntfAcyclic notin c.typ.flags
-
 proc extGetCellType(c: pointer): PNimType {.compilerproc.} =
   # used for code generation concerning debugging
   result = usrToCell(c).typ
diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim
index f0b25c189..64d8bc0c8 100644
--- a/lib/system/gc_ms.nim
+++ b/lib/system/gc_ms.nim
@@ -100,9 +100,6 @@ proc usrToCell(usr: pointer): PCell {.inline.} =
   # convert pointer to userdata to object (=pointer to refcount)
   result = cast[PCell](cast[ByteAddress](usr)-%ByteAddress(sizeof(Cell)))
 
-proc canbeCycleRoot(c: PCell): bool {.inline.} =
-  result = ntfAcyclic notin c.typ.flags
-
 proc extGetCellType(c: pointer): PNimType {.compilerproc.} =
   # used for code generation concerning debugging
   result = usrToCell(c).typ