mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
remove unused imports
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
import
|
||||
intsets, ast, astalgo, msgs, renderer, magicsys, types, idents,
|
||||
intsets, ast, msgs, renderer, magicsys, types, idents,
|
||||
strutils, options, dfa, lowerings, tables, modulegraphs, msgs,
|
||||
lineinfos, parampatterns, sighashes
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# This module implements semantic checking for pragmas
|
||||
|
||||
import
|
||||
os, platform, condsyms, ast, astalgo, idents, semdata, msgs, renderer,
|
||||
os, condsyms, ast, astalgo, idents, semdata, msgs, renderer,
|
||||
wordrecg, ropes, options, strutils, extccomp, math, magicsys, trees,
|
||||
types, lookups, lineinfos, pathutils, linter
|
||||
|
||||
|
||||
@@ -12,9 +12,6 @@ import
|
||||
wordrecg, strutils, options, guards, lineinfos, semfold, semdata,
|
||||
modulegraphs
|
||||
|
||||
when not defined(leanCompiler):
|
||||
import writetracking
|
||||
|
||||
when defined(useDfa):
|
||||
import dfa
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ import
|
||||
magicsys, idents, lexer, options, parampatterns, strutils, trees,
|
||||
linter, lineinfos, lowerings, modulegraphs
|
||||
|
||||
when (defined(booting) or defined(nimsuggest)) and not defined(leanCompiler):
|
||||
import docgen
|
||||
|
||||
type
|
||||
MismatchKind* = enum
|
||||
kUnknown, kAlreadyGiven, kUnknownNamedParam, kTypeMismatch, kVarNeeded,
|
||||
|
||||
@@ -12,10 +12,7 @@
|
||||
include "system/inclrtl"
|
||||
|
||||
when not defined(windows):
|
||||
import strutils, posix, os
|
||||
|
||||
when defined(linux):
|
||||
import linux
|
||||
import posix
|
||||
|
||||
when defined(freebsd) or defined(macosx):
|
||||
{.emit:"#include <sys/types.h>".}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
when not declared(os) and not declared(ospaths):
|
||||
{.error: "This is an include file for os.nim!".}
|
||||
|
||||
from parseutils import skipIgnoreCase
|
||||
when defined(windows):
|
||||
from parseutils import skipIgnoreCase
|
||||
|
||||
proc c_getenv(env: cstring): cstring {.
|
||||
importc: "getenv", header: "<stdlib.h>".}
|
||||
|
||||
@@ -27,9 +27,6 @@ when defined(windows):
|
||||
else:
|
||||
import posix
|
||||
|
||||
when defined(linux):
|
||||
import linux
|
||||
|
||||
type
|
||||
ProcessOption* = enum ## Options that can be passed to `startProcess proc
|
||||
## <#startProcess,string,string,openArray[string],StringTableRef,set[ProcessOption]>`_.
|
||||
|
||||
@@ -151,8 +151,7 @@
|
||||
|
||||
include "system/inclrtl"
|
||||
|
||||
import
|
||||
os, strutils
|
||||
import os
|
||||
|
||||
type
|
||||
CmdLineKind* = enum ## The detected command line token.
|
||||
|
||||
@@ -17,10 +17,9 @@ import strutils, os, parseopt, parseutils, sequtils, net, rdstdin, sexp
|
||||
# suggestionResultHook, because suggest.nim is included by sigmatch.
|
||||
# So we import that one instead.
|
||||
import compiler / [options, commands, modules, sem,
|
||||
passes, passaux, msgs, nimconf,
|
||||
extccomp, condsyms,
|
||||
sigmatch, ast, scriptconfig,
|
||||
idents, modulegraphs, vm, prefixmatches, lineinfos, cmdlinehelper,
|
||||
passes, passaux, msgs,
|
||||
sigmatch, ast,
|
||||
idents, modulegraphs, prefixmatches, lineinfos, cmdlinehelper,
|
||||
pathutils]
|
||||
|
||||
when defined(windows):
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#
|
||||
import strutils
|
||||
import math
|
||||
import macros
|
||||
|
||||
|
||||
const
|
||||
|
||||
@@ -28,13 +28,11 @@ In addition, all command line options of Nim that do not affect code generation
|
||||
are supported.
|
||||
"""
|
||||
|
||||
import strutils, os, parseopt, parseutils
|
||||
import strutils, os, parseopt
|
||||
|
||||
import "../compiler" / [options, commands, modules, sem,
|
||||
passes, passaux, msgs, nimconf,
|
||||
extccomp, condsyms,
|
||||
ast, scriptconfig,
|
||||
idents, modulegraphs, vm, prefixmatches, lineinfos, cmdlinehelper,
|
||||
passes, passaux, msgs, ast,
|
||||
idents, modulegraphs, lineinfos, cmdlinehelper,
|
||||
pathutils]
|
||||
|
||||
import db_sqlite
|
||||
|
||||
Reference in New Issue
Block a user