Fix "imported but not used" warnings (#20575)

This commit is contained in:
Andrey Makarov
2022-10-16 21:24:16 +03:00
committed by GitHub
parent 0bacdf5fdf
commit 081dfea746
6 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
import
intsets, options, ast, msgs, idents, renderer, types, magicsys,
sempass2, strutils, modulegraphs, lineinfos
sempass2, modulegraphs, lineinfos
when defined(nimPreviewSlimSystem):
import std/assertions

View File

@@ -20,7 +20,6 @@ import
import packages/docutils/rstast except FileIndex, TLineInfo
from uri import encodeUrl
from std/private/globs import nativeToUnixPath
from nodejs import findNodeJs
when defined(nimPreviewSlimSystem):

View File

@@ -11,7 +11,7 @@
## represents a complete Nim project. Single modules can either be kept in RAM
## or stored in a rod-file.
import intsets, tables, hashes, md5_old, sequtils
import intsets, tables, hashes, md5_old
import ast, astalgo, options, lineinfos,idents, btrees, ropes, msgs, pathutils, packages
import ic / [packed_ast, ic]

View File

@@ -10,7 +10,7 @@
## Implements the module handling, including the caching of modules.
import
ast, astalgo, magicsys, msgs, options,
ast, magicsys, msgs, options,
idents, lexer, passes, syntaxes, llstream, modulegraphs,
lineinfos, pathutils, tables, packages

View File

@@ -14,7 +14,10 @@ import
options, ast, llstream, msgs,
idents,
syntaxes, modulegraphs, reorder,
lineinfos, pathutils, std/sha1, packages
lineinfos, pathutils, packages
when defined(nimsuggest):
import std/sha1
when defined(nimPreviewSlimSystem):
import std/syncio

View File

@@ -9,8 +9,6 @@
# Ropes for the C code generator. Ropes are mapped to `string` directly nowadays.
import hashes
from pathutils import AbsoluteFile
when defined(nimPreviewSlimSystem):