summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2021-10-13 10:09:45 +0100
committerGitHub <noreply@github.com>2021-10-13 11:09:45 +0200
commit2aa97a228aa3a34b48f1af9901f29379fb131a31 (patch)
treead0e2d5b43c70bd1a54d5bd216b2c33873283c5b /lib
parent0ae2d1ea88fdc7b6910ddbc960c7db086be383e4 (diff)
downloadNim-2aa97a228aa3a34b48f1af9901f29379fb131a31.tar.gz
Removes deprecated {.injectStmt.}. Fixes #18666 (#18984)
Diffstat (limited to 'lib')
-rw-r--r--lib/system/gc_ms.nim10
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):