Skip to content

Commit

Permalink
Fix "imported but not used" warnings (#20575)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mr authored Oct 16, 2022
1 parent 0bacdf5 commit 081dfea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compiler/cgmeth.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion compiler/modulegraphs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion compiler/modules.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion compiler/passes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions compiler/ropes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 081dfea

Please sign in to comment.