Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused iterateDirectory(string) #2729

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/dub/commandline.d
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ class DustmiteCommand : PackageBuildCommand {
void copyFolderRec(NativePath folder, NativePath dstfolder)
{
ensureDirectory(dstfolder);
foreach (de; iterateDirectory(folder.toNativeString())) {
foreach (de; iterateDirectory(folder)) {
if (de.name.startsWith(".")) continue;
if (de.isDirectory) {
copyFolderRec(folder ~ de.name, dstfolder ~ de.name);
Expand Down
2 changes: 1 addition & 1 deletion source/dub/generators/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ private void finalizeGeneration(in Package pack, in Project proj, in GeneratorSe
void copyFolderRec(NativePath folder, NativePath dstfolder)
{
ensureDirectory(dstfolder);
foreach (de; iterateDirectory(folder.toNativeString())) {
foreach (de; iterateDirectory(folder)) {
if (de.isDirectory) {
copyFolderRec(folder ~ de.name, dstfolder ~ de.name);
} else {
Expand Down
6 changes: 0 additions & 6 deletions source/dub/internal/vibecompat/core/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,6 @@ int delegate(scope int delegate(ref FileInfo)) iterateDirectory(NativePath path)
}
return &iterator;
}
/// ditto
int delegate(scope int delegate(ref FileInfo)) iterateDirectory(string path)
{
return iterateDirectory(NativePath(path));
}


/**
Returns the current working directory.
Expand Down
Loading