remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)

* cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors

* simplify nimNoNilSeqs2

* simplify nimNoNilSeqs

* fixup
This commit is contained in:
Timothee Cour
2021-01-29 05:30:24 -08:00
committed by GitHub
parent 4e1e231e29
commit 6e267d28b3
13 changed files with 29 additions and 93 deletions

View File

@@ -477,8 +477,6 @@ proc deduplicateFiles(c: var ConfigData) =
let build = getOutputDir(c)
for osA in countup(1, c.oses.len):
for cpuA in countup(1, c.cpus.len):
when not defined(nimNoNilSeqs):
if c.cfiles[osA][cpuA].isNil: c.cfiles[osA][cpuA] = @[]
if c.explicitPlatforms and not c.platforms[osA][cpuA]: continue
for dup in mitems(c.cfiles[osA][cpuA]):
let key = $secureHashFile(build / dup)