Remove unused imports (#166)
This commit is contained in:
parent
29717d09e8
commit
116a4ea3d2
|
|
@ -8,7 +8,6 @@ module dscanner.analysis.del;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
import dscanner.analysis.base;
|
import dscanner.analysis.base;
|
||||||
import dscanner.analysis.helpers;
|
import dscanner.analysis.helpers;
|
||||||
import dsymbol.scope_;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for use of the deprecated 'delete' keyword
|
* 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.base;
|
||||||
import dscanner.analysis.helpers;
|
import dscanner.analysis.helpers;
|
||||||
import dparse.ast;
|
|
||||||
import dparse.lexer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for incorrect infinite range definitions
|
* Checks for incorrect infinite range definitions
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,13 @@ import std.stdio;
|
||||||
|
|
||||||
import dscanner.analysis.base;
|
import dscanner.analysis.base;
|
||||||
import dscanner.analysis.helpers;
|
import dscanner.analysis.helpers;
|
||||||
import dsymbol.scope_;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for subtraction from a .length property. This is usually a bug.
|
* 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;
|
alias visit = BaseAnalyzerDmd.visit;
|
||||||
|
|
||||||
mixin AnalyzerInfo!"length_subtraction_check";
|
mixin AnalyzerInfo!"length_subtraction_check";
|
||||||
|
|
||||||
extern(D) this(string fileName)
|
extern(D) this(string fileName)
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ module dscanner.analysis.local_imports;
|
||||||
import dscanner.analysis.base;
|
import dscanner.analysis.base;
|
||||||
import dscanner.analysis.helpers;
|
import dscanner.analysis.helpers;
|
||||||
|
|
||||||
import std.stdio : writeln;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for local imports that import all symbols.
|
* Checks for local imports that import all symbols.
|
||||||
* See_also: $(LINK https://issues.dlang.org/show_bug.cgi?id=10378)
|
* See_also: $(LINK https://issues.dlang.org/show_bug.cgi?id=10378)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue