From a0049d1fb0c997053ffafe8e53e8be6f611c4695 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 27 Jul 2020 08:05:52 +0200 Subject: compiler: minor code cleanups --- compiler/importer.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/importer.nim') diff --git a/compiler/importer.nim b/compiler/importer.nim index 844cb1ad0..34e76d7d9 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -187,10 +187,9 @@ proc impMod(c: PContext; it: PNode; importStmtResult: PNode) = let it = transformImportAs(c, it) let m = myImportModule(c, it, importStmtResult) if m != nil: - var emptySet: IntSet # ``addDecl`` needs to be done before ``importAllSymbols``! addDecl(c, m, it.info) # add symbol to symbol table of module - importAllSymbolsExcept(c, m, emptySet) + importAllSymbols(c, m) #importForwarded(c, m.ast, emptySet, m) proc evalImport*(c: PContext, n: PNode): PNode = -- cgit 1.4.1-2-gfad0