summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2022-10-16 21:24:16 +0300
committerGitHub <noreply@github.com>2022-10-16 20:24:16 +0200
commit081dfea746d77f838dc60aecaf578abbba838ec5 (patch)
treed64579fb375185a759931c3f886fe4068a033d66
parent0bacdf5fdf86a01132d2817599ad0a7f155a101e (diff)
downloadNim-081dfea746d77f838dc60aecaf578abbba838ec5.tar.gz
Fix "imported but not used" warnings (#20575)
-rw-r--r--compiler/cgmeth.nim2
-rw-r--r--compiler/docgen.nim1
-rw-r--r--compiler/modulegraphs.nim2
-rw-r--r--compiler/modules.nim2
-rw-r--r--compiler/passes.nim5
-rw-r--r--compiler/ropes.nim2
6 files changed, 7 insertions, 7 deletions
diff --git a/compiler/cgmeth.nim b/compiler/cgmeth.nim
index 23dea1d18..8fe8f225c 100644
--- a/compiler/cgmeth.nim
+++ b/compiler/cgmeth.nim
@@ -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
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 5ba46c80b..9271d4975 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -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):
diff --git a/compiler/modulegraphs.nim b/compiler/modulegraphs.nim
index cbf3db456..e8f77a491 100644
--- a/compiler/modulegraphs.nim
+++ b/compiler/modulegraphs.nim
@@ -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]
 
diff --git a/compiler/modules.nim b/compiler/modules.nim
index 2becef38f..7f6ff8622 100644
--- a/compiler/modules.nim
+++ b/compiler/modules.nim
@@ -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
 
diff --git a/compiler/passes.nim b/compiler/passes.nim
index 46c36f9d1..a8f67300c 100644
--- a/compiler/passes.nim
+++ b/compiler/passes.nim
@@ -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
diff --git a/compiler/ropes.nim b/compiler/ropes.nim
index 12eac733e..5bf154393 100644
--- a/compiler/ropes.nim
+++ b/compiler/ropes.nim
@@ -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):