Style fix: specify/remove local imports

This commit is contained in:
Sebastian Wilzbach 2016-10-11 11:53:57 +02:00
parent 6f1690f6b1
commit 64217c8965
4 changed files with 7 additions and 9 deletions

View file

@ -639,7 +639,7 @@ if (isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range)
// Loop invariant
version(unittest)
{
import std.algorithm.searching;
import std.algorithm.searching : all;
assert(r[0 .. lo].all!(x => !lt(p, x)));
assert(r[hi + 1 .. r.length].all!(x => !lt(x, p)));
}

View file

@ -259,7 +259,6 @@ template BacktrackingMatcher(bool CTregex)
return val;
else
{
import std.stdio;
if (atEnd)
break;
search();

View file

@ -673,8 +673,8 @@ version(unittest)
{
private void check(T)(string input, T re, size_t idx=uint.max, int line=__LINE__)
{
import std.regex, std.conv;
import std.stdio;
import std.regex : regex;
import std.conv : text, to;
auto rex = regex(re, "s");
auto m = make(rex);
auto s = Input!char(input);
@ -688,8 +688,8 @@ version(unittest)
{
private void checkFail(T)(string input, T re, size_t idx=uint.max, int line=__LINE__)
{
import std.regex, std.conv;
import std.stdio;
import std.regex : regex;
import std.conv : text, to;
auto rex = regex(re, "s");
auto m = make(rex);
auto s = Input!char(input);
@ -700,8 +700,8 @@ version(unittest)
private void checkEmpty(T)(T re)
{
import std.regex, std.conv;
import std.stdio;
import std.regex : regex;
import std.conv : to;
auto rex = regex(re);
auto m = BitNfa(rex);
assert(m.empty, "Should be empty "~to!string(re));

View file

@ -490,7 +490,6 @@ pure:
@trusted void reverseBytecode()(Bytecode[] code) pure
{
import std.typecons;
Bytecode[] rev = new Bytecode[code.length];
uint revPc = cast(uint)rev.length;
Stack!(Tuple!(uint, uint, uint)) stack;