Skip to content

Commit

Permalink
Trivial: Remove internal deprecations
Browse files Browse the repository at this point in the history
Neither commandline not dub.internal are part of the public API for the library,
hence those deprecations were unnecessary.
  • Loading branch information
Geod24 committed Jun 11, 2024
1 parent 1be0c39 commit 91d3a59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions source/dub/commandline.d
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,6 @@ struct CommonOptions {
SkipPackageSuppliers skipRegistry = SkipPackageSuppliers.default_;
PlacementLocation placementLocation = PlacementLocation.user;

deprecated("Use `Color` instead, the previous naming was a limitation of error message formatting")
alias color = Color;
deprecated("Use `colorMode` instead")
alias color_mode = colorMode;

private void parseColor(string option, string value) @safe
{
// `automatic`, `on`, `off` are there for backwards compatibility
Expand Down
12 changes: 0 additions & 12 deletions source/dub/internal/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,11 @@ void atomicWriteJsonFile(NativePath path, Json json)
moveFile(tmppath, path);
}

deprecated("specify a working directory explicitly")
void runCommand(string command, string[string] env = null)
{
runCommands((&command)[0 .. 1], env, null);
}

void runCommand(string command, string[string] env, string workDir)
{
runCommands((&command)[0 .. 1], env, workDir);
}

deprecated("specify a working directory explicitly")
void runCommands(in string[] commands, string[string] env = null)
{
runCommands(commands, env, null);
}

void runCommands(in string[] commands, string[string] env, string workDir)
{
import std.stdio : stdin, stdout, stderr, File;
Expand Down

0 comments on commit 91d3a59

Please sign in to comment.