removed unused imports [refactoring]

This commit is contained in:
Andreas Rumpf
2019-08-08 16:51:41 +02:00
parent 44e7a7b6c2
commit 0d5bd7e8b5
9 changed files with 9 additions and 11 deletions

View File

@@ -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

View File

@@ -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):

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -103,7 +103,7 @@
{.deadCodeElim: on.} # dce option deprecated
import strutils, sqlite3
import sqlite3
import db_common
export db_common