fixes #12029; finish the 'unused import' feature (#12064)

This commit is contained in:
Andreas Rumpf 2019-08-27 19:18:56 +02:00 • committed by GitHub
commit 114da04cbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 4 deletions

View file

@ -50,7 +50,6 @@ proc partialInitModule(result: PSym; graph: ModuleGraph; fileIdx: FileIndex; fil
setLen(graph.modules, int(fileIdx) + 1)
graph.modules[result.position] = result
incl(result.flags, sfUsed)
initStrTable(result.tab)
strTableAdd(result.tab, result) # a module knows itself
strTableAdd(packSym.tab, result)