diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2021-10-13 10:09:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 11:09:45 +0200 |
commit | 2aa97a228aa3a34b48f1af9901f29379fb131a31 (patch) | |
tree | ad0e2d5b43c70bd1a54d5bd216b2c33873283c5b /lib | |
parent | 0ae2d1ea88fdc7b6910ddbc960c7db086be383e4 (diff) | |
download | Nim-2aa97a228aa3a34b48f1af9901f29379fb131a31.tar.gz |
Removes deprecated {.injectStmt.}. Fixes #18666 (#18984)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/gc_ms.nim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim index 9e306c497..0675b9f2e 100644 --- a/lib/system/gc_ms.nim +++ b/lib/system/gc_ms.nim @@ -428,16 +428,6 @@ proc sweep(gch: var GcHeap) = if c.refcount == rcBlack: c.refcount = rcWhite else: freeCyclicCell(gch, c) -when false: - # meant to be used with the now-deprected `.injectStmt`: {.injectStmt: newGcInvariant().} - proc newGcInvariant*() = - for x in allObjects(gch.region): - if isCell(x): - var c = cast[PCell](x) - if c.typ == nil: - writeStackTrace() - quit 1 - proc markGlobals(gch: var GcHeap) = if gch.gcThreadId == 0: when defined(nimTracing): |