[Issue 24778] Warning for unused imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 22 15:22:43 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24778

Lance Bachmeier <lance at lancebachmeier.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lance at lancebachmeier.com

--- Comment #2 from Lance Bachmeier <lance at lancebachmeier.com> ---
(In reply to Manu from comment #0)
> This has come up before... but I seriously, desperately want this.
> Detecting unused imports is most important to improve build times.
> I periodically try and cull old imports to improve build times, but it's
> difficult to do, and just a massive waste of time!
> 
> I know people don't like warnings; but this is exactly what warnings should
> be for.

Atila started a related thread a couple months ago:
https://forum.dlang.org/post/uosaqeqcwvdbzuafjehh@forum.dlang.org

There was a tool posted in that thread that identifies unused global imports:
https://forum.dlang.org/post/xlggsjttounitndnecgw@forum.dlang.org

--


More information about the Digitalmars-d-bugs mailing list