diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-08-08 16:51:41 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-08 17:03:19 +0200 |
commit | 0d5bd7e8b5b265342fad62b581c430ebabc77aa3 (patch) | |
tree | 68c5c8dee21fce58ca2ef35f42b399d7ba21de68 /compiler | |
parent | 44e7a7b6c2b37c0632cc030c0c90df4d92c50088 (diff) | |
download | Nim-0d5bd7e8b5b265342fad62b581c430ebabc77aa3.tar.gz |
removed unused imports [refactoring]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/aliases.nim | 2 | ||||
-rw-r--r-- | compiler/cgen.nim | 2 | ||||
-rw-r--r-- | compiler/cgendata.nim | 2 | ||||
-rw-r--r-- | compiler/docgen.nim | 4 | ||||
-rw-r--r-- | compiler/main.nim | 2 | ||||
-rw-r--r-- | compiler/rodimpl.nim | 2 | ||||
-rw-r--r-- | compiler/transf.nim | 2 | ||||
-rw-r--r-- | compiler/vmdef.nim | 2 |
8 files changed, 8 insertions, 10 deletions
diff --git a/compiler/aliases.nim b/compiler/aliases.nim index 42b073495..a09c4077d 100644 --- a/compiler/aliases.nim +++ b/compiler/aliases.nim @@ -10,7 +10,7 @@ ## Simple alias analysis for the HLO and the code generators. import - ast, astalgo, types, trees, intsets, msgs + ast, astalgo, types, trees, intsets type TAnalysisResult* = enum diff --git a/compiler/cgen.nim b/compiler/cgen.nim index c0ef4e1e3..e961530f2 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -13,7 +13,7 @@ import ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets, nversion, nimsets, msgs, bitsets, idents, types, ccgutils, os, ropes, math, passes, wordrecg, treetab, cgmeth, - condsyms, rodutils, renderer, cgendata, ccgmerge, aliases, + rodutils, renderer, cgendata, ccgmerge, aliases, lowerings, tables, sets, ndi, lineinfos, pathutils, transf, enumtostr when not defined(leanCompiler): diff --git a/compiler/cgendata.nim b/compiler/cgendata.nim index 77445639e..bd35f2b87 100644 --- a/compiler/cgendata.nim +++ b/compiler/cgendata.nim @@ -10,7 +10,7 @@ ## This module contains the data structures for the C code generation phase. import - ast, ropes, passes, options, intsets, + ast, ropes, options, intsets, tables, ndi, lineinfos, pathutils, modulegraphs type diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 28cbcbd8d..e214ece4a 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -15,8 +15,8 @@ import ast, strutils, strtabs, options, msgs, os, ropes, idents, wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast, packages/docutils/rst, packages/docutils/rstgen, - packages/docutils/highlite, json, xmltree, cgi, trees, types, - typesrenderer, astalgo, modulepaths, lineinfos, intsets, + json, xmltree, cgi, trees, types, + typesrenderer, astalgo, lineinfos, intsets, pathutils, trees const diff --git a/compiler/main.nim b/compiler/main.nim index 35c5f9993..f8ca2ba59 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -24,8 +24,6 @@ import when not defined(leanCompiler): import jsgen, docgen, docgen2 -from magicsys import resetSysTypes - proc semanticPasses(g: ModuleGraph) = registerPass g, verbosePass registerPass g, semPass diff --git a/compiler/rodimpl.nim b/compiler/rodimpl.nim index 69b50c391..b58f77ff6 100644 --- a/compiler/rodimpl.nim +++ b/compiler/rodimpl.nim @@ -9,7 +9,7 @@ ## This module implements the new compilation cache. -import strutils, os, intsets, tables, ropes, db_sqlite, msgs, options, types, +import strutils, intsets, tables, ropes, db_sqlite, msgs, options, renderer, rodutils, idents, astalgo, btrees, magicsys, cgmeth, extccomp, btrees, trees, condsyms, nversion, pathutils diff --git a/compiler/transf.nim b/compiler/transf.nim index 0435ca322..555583685 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -20,7 +20,7 @@ import options, ast, astalgo, trees, msgs, - idents, renderer, types, passes, semfold, magicsys, cgmeth, + idents, renderer, types, semfold, magicsys, cgmeth, lowerings, injectdestructors, liftlocals, modulegraphs, lineinfos diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim index c2645c803..17c133b08 100644 --- a/compiler/vmdef.nim +++ b/compiler/vmdef.nim @@ -10,7 +10,7 @@ ## This module contains the type definitions for the new evaluation engine. ## An instruction is 1-3 int32s in memory, it is a register based VM. -import ast, idents, intsets, options, modulegraphs, lineinfos +import ast, idents, options, modulegraphs, lineinfos const byteExcess* = 128 # we use excess-K for immediates |