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
commit 081dfea746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

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

View file

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

View file

@ -11,7 +11,7 @@
## represents a complete Nim project. Single modules can either be kept in RAM ## represents a complete Nim project. Single modules can either be kept in RAM
## or stored in a rod-file. ## 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 ast, astalgo, options, lineinfos,idents, btrees, ropes, msgs, pathutils, packages
import ic / [packed_ast, ic] import ic / [packed_ast, ic]

View file

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

View file

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

View file

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