followup #17225: simplify code after removing gc2, generational (#17242)

This commit is contained in:
Timothee Cour 2021-03-03 04:37:42 -08:00 • committed by GitHub
commit f561afae41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 16 deletions

View file

@ -304,7 +304,7 @@ proc setLengthSeq(seq: PGenericSeq, elemSize, elemAlign, newLen: int): PGenericS
when not defined(boehmGC) and not defined(nogc) and
not defined(gcMarkAndSweep) and not defined(gogc) and
not defined(gcRegions):
when false: # compileOption("gc", "v2"):
when false: # deadcode: was used by `compileOption("gc", "v2")`
for i in newLen..result.len-1:
let len0 = gch.tempStack.len
forAllChildrenAux(dataPointer(result, elemAlign, elemSize, i),