mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 05:10:03 +03:00
Remove unused imports (#166)
This commit is contained in:
parent
b308eb44de
commit
c276428331
4 changed files with 1 additions and 9 deletions
|
@ -8,7 +8,6 @@ module dscanner.analysis.del;
|
|||
import std.stdio;
|
||||
import dscanner.analysis.base;
|
||||
import dscanner.analysis.helpers;
|
||||
import dsymbol.scope_;
|
||||
|
||||
/**
|
||||
* Checks for use of the deprecated 'delete' keyword
|
||||
|
|
|
@ -7,8 +7,6 @@ module dscanner.analysis.incorrect_infinite_range;
|
|||
|
||||
import dscanner.analysis.base;
|
||||
import dscanner.analysis.helpers;
|
||||
import dparse.ast;
|
||||
import dparse.lexer;
|
||||
|
||||
/**
|
||||
* Checks for incorrect infinite range definitions
|
||||
|
|
|
@ -9,16 +9,13 @@ import std.stdio;
|
|||
|
||||
import dscanner.analysis.base;
|
||||
import dscanner.analysis.helpers;
|
||||
import dsymbol.scope_;
|
||||
|
||||
/**
|
||||
* Checks for subtraction from a .length property. This is usually a bug.
|
||||
*/
|
||||
extern(C++) class LengthSubtractionCheck(AST) : BaseAnalyzerDmd
|
||||
extern (C++) class LengthSubtractionCheck(AST) : BaseAnalyzerDmd
|
||||
{
|
||||
// alias visit = BaseAnalyzerDmd!AST.visit;
|
||||
alias visit = BaseAnalyzerDmd.visit;
|
||||
|
||||
mixin AnalyzerInfo!"length_subtraction_check";
|
||||
|
||||
extern(D) this(string fileName)
|
||||
|
|
|
@ -8,8 +8,6 @@ module dscanner.analysis.local_imports;
|
|||
import dscanner.analysis.base;
|
||||
import dscanner.analysis.helpers;
|
||||
|
||||
import std.stdio : writeln;
|
||||
|
||||
/**
|
||||
* Checks for local imports that import all symbols.
|
||||
* See_also: $(LINK https://issues.dlang.org/show_bug.cgi?id=10378)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue