Skip to content

Commit

Permalink
Removed package wide std.algorithm imports from std.file
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Jul 18, 2016
1 parent 68c004d commit 38fd55e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void[] read(R)(auto ref R name, size_t upTo = size_t.max)

version (Posix) private void[] readImpl(const(char)[] name, const(FSChar)* namez, size_t upTo = size_t.max) @trusted
{
import std.algorithm : min;
import std.algorithm.comparison : min;
import std.array : uninitializedArray;
import core.memory : GC;
import std.conv : to;
Expand Down Expand Up @@ -308,7 +308,7 @@ version (Posix) private void[] readImpl(const(char)[] name, const(FSChar)* namez

version (Windows) private void[] readImpl(const(char)[] name, const(FSChar)* namez, size_t upTo = size_t.max) @safe
{
import std.algorithm : min;
import std.algorithm.comparison : min;
import std.array : uninitializedArray;
static trustedCreateFileW(const(wchar)* namez, DWORD dwDesiredAccess, DWORD dwShareMode,
SECURITY_ATTRIBUTES *lpSecurityAttributes, DWORD dwCreationDisposition,
Expand Down Expand Up @@ -3987,7 +3987,7 @@ foreach (d; dFiles)
auto dirEntries(string path, string pattern, SpanMode mode,
bool followSymlink = true)
{
import std.algorithm : filter;
import std.algorithm.iteration : filter;
import std.path : globMatch, baseName;

bool f(DirEntry de) { return globMatch(baseName(de.name), pattern); }
Expand Down

0 comments on commit 38fd55e

Please sign in to comment.