gc: removed dead code
This commit is contained in:
parent
62ab338900
commit
79b1eafa59
2 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue