summary refs log tree commit diff stats
path: root/compiler
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 /compiler
parent0bacdf5fdf86a01132d2817599ad0a7f155a101e (diff)
downloadNim-081dfea746d77f838dc60aecaf578abbba838ec5.tar.gz
Fix "imported but not used" warnings (#20575)
Diffstat (limited to 'compiler')
-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):
/a> 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631