http://d.puremagic.com/issues/show_bug.cgi?id=10437
Summary: Warnings for unused private imports Product: D Version: future Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: q...@web.de --- Comment #0 from q...@web.de 2013-06-21 05:46:07 PDT --- The compiler should output warnings, if the source code contains imports, which are not used and can be removed. Example: For debugging the following private imports were used, but now the module does not contain any writeln or text call anymore, but parse is used. private import std.stdio; private import std.conv: text, parse; The compiler should print warnings like: foo.d(3): Warning: unused private import std.stdio; should be deleted foo.d(4): Warning: unused private import std.conv: text; should be deleted This has been discussed together with other unused stuff, but there seems to be no conclusion in the thread. http://forum.dlang.org/thread/i4luk9$2rdg$1...@digitalmars.com This enhancement helps to keep a code base clean. Less imports might reduce compile times. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------