Skip to content

Commit

Permalink
Remove unnecessary imports from getFileAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jul 22, 2020
1 parent 0009f5b commit 70cc464
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dsymbol/modulecache.d
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,7 @@ private static bool getFileAttributesFast(R)(R name, uint* attributes)
version (Windows)
{
import std.internal.cstring : tempCStringW;
import core.sys.windows.winnt : INVALID_FILE_ATTRIBUTES,
FILE_ATTRIBUTE_DIRECTORY;
import core.sys.windows.winnt : INVALID_FILE_ATTRIBUTES;
import core.sys.windows.winbase : GetFileAttributesW;

auto namez = tempCStringW(name);
Expand All @@ -474,7 +473,7 @@ private static bool getFileAttributesFast(R)(R name, uint* attributes)
}
else version (Posix)
{
import core.sys.posix.sys.stat : stat, stat_t, S_IFMT, S_IFREG, S_IFDIR;
import core.sys.posix.sys.stat : stat, stat_t;
import std.internal.cstring : tempCString;

auto namez = tempCString(name);
Expand Down

0 comments on commit 70cc464

Please sign in to comment.