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 imports [on hold]. #1948

Closed
wants to merge 3 commits into from
Closed
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: 0 additions & 2 deletions source/dub/commandline.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
module dub.commandline;

import dub.compilers.compiler;
import dub.dependency;
import dub.dub;
import dub.generators.generator;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;
import dub.package_;
import dub.packagemanager;
import dub.packagesuppliers;
Expand Down
7 changes: 1 addition & 6 deletions source/dub/compilers/compiler.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,16 @@
module dub.compilers.compiler;

public import dub.compilers.buildsettings;
public import dub.dependency : Dependency;
veelo marked this conversation as resolved.
Show resolved Hide resolved
deprecated("Please \"import dub.dependency : Dependency\" instead.") public import dub.dependency : Dependency;
public import dub.platform : BuildPlatform, matchesSpecification;

import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.path;
import dub.recipe.packagerecipe : ToolchainRequirements;

import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.process;
import std.typecons : Flag;


/** Returns a compiler handler for a given binary name.
Expand Down
3 changes: 0 additions & 3 deletions source/dub/compilers/dmd.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ import dub.compilers.utils;
import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.recipe.packagerecipe : ToolchainRequirements;

import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.typecons;

// Determines whether the specified process is running under WOW64 or an Intel64 of x64 processor.
Expand Down
2 changes: 0 additions & 2 deletions source/dub/compilers/gdc.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import dub.compilers.utils;
import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.recipe.packagerecipe : ToolchainRequirements;

import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
Expand Down
3 changes: 0 additions & 3 deletions source/dub/compilers/ldc.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ import dub.compilers.utils;
import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.recipe.packagerecipe : ToolchainRequirements;

import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.typecons;


Expand Down
4 changes: 0 additions & 4 deletions source/dub/dependency.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;
import dub.package_;
import dub.semver;

import std.algorithm;
import std.array;
import std.exception;
import std.regex;
import std.string;
import std.typecons;
static import std.compiler;


/** Encapsulates the name of a package along with its dependency specification.
Expand Down
3 changes: 1 addition & 2 deletions source/dub/dependencyresolver.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import std.algorithm : all, canFind, filter, map, sort;
import std.array : appender, array, join;
import std.conv : to;
import std.exception : enforce;
import std.typecons : Nullable;
import std.string : format, indexOf, lastIndexOf;
import std.string : format, lastIndexOf;


/** Resolves dependency graph with multiple configurations per package.
Expand Down
1 change: 0 additions & 1 deletion source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;
import dub.package_;
import dub.packagemanager;
import dub.packagesuppliers;
Expand Down
1 change: 0 additions & 1 deletion source/dub/generators/build.d
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import dub.generators.generator;
import dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.package_;
import dub.packagemanager;
import dub.project;
Expand Down
1 change: 0 additions & 1 deletion source/dub/generators/cmake.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import dub.compilers.buildsettings;
import dub.generators.generator;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.inet.path;
import dub.project;

import std.algorithm: map, uniq;
Expand Down
2 changes: 0 additions & 2 deletions source/dub/generators/generator.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ import dub.generators.sublimetext;
import dub.generators.visuald;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.path;
import dub.package_;
import dub.packagemanager;
import dub.project;

import std.algorithm : map, filter, canFind, balancedParens;
import std.array : array;
import std.array;
import std.exception;
import std.file;
Expand Down
4 changes: 0 additions & 4 deletions source/dub/generators/sublimetext.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ import dub.project;

import std.algorithm;
import std.array;
import std.compiler;
import std.file;
import std.path;
import std.range;
import std.string;


class SublimeTextGenerator : ProjectGenerator {
Expand Down
1 change: 0 additions & 1 deletion source/dub/internal/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;
import dub.compilers.buildsettings : BuildSettings;
import dub.version_;

Expand Down
1 change: 0 additions & 1 deletion source/dub/package_.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import dub.internal.utils;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;

import std.algorithm;
import std.array;
Expand Down
1 change: 0 additions & 1 deletion source/dub/packagemanager.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.path;
import dub.package_;

import std.algorithm : countUntil, filter, sort, canFind, remove;
Expand Down
1 change: 0 additions & 1 deletion source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.url;
import dub.package_;
import dub.packagemanager;
import dub.generators.generator;
Expand Down
1 change: 0 additions & 1 deletion source/dub/recipe/packagerecipe.d
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import dub.dependency;

import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.inet.url;

import std.algorithm : findSplit, sort;
import std.array : join, split;
Expand Down
1 change: 0 additions & 1 deletion source/dub/semver.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
module dub.semver;

import std.range;
import std.string;
import std.algorithm : max;
import std.conv;
Expand Down