[Issue 24778] New: Warning for unused imports

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


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

          Issue ID: 24778
           Summary: Warning for unused imports
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list