From 79b1eafa59983509a2eb61072974de8dfc05f196 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 14 Mar 2019 07:59:08 +0100 Subject: gc: removed dead code --- lib/system/gc2.nim | 3 --- lib/system/gc_ms.nim | 3 --- 2 files changed, 6 deletions(-) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0