Showing with 16 additions and 329 deletions.
  1. +0 −8 std/container/dlist.d
  2. +3 −50 std/datetime.d
  3. +0 −27 std/exception.d
  4. +13 −244 std/process.d
8 changes: 0 additions & 8 deletions std/container/dlist.d
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,6 @@ Appends the contents of the argument $(D rhs) into $(D this).
return this;
}

// Explicitly undocumented. It will be removed in August 2016. @@@DEPRECATED_2016-08@@@
deprecated("Please, use `dlist ~= dlist[];` instead.")
DList opOpAssign(string op)(DList rhs)
if (op == "~")
{
return this ~= rhs[];
}

/+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +/
/+ BEGIN INSERT FUNCTIONS HERE +/
/+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +/
Expand Down
53 changes: 3 additions & 50 deletions std/datetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -758,24 +758,7 @@ public:
assertThrown!DateTimeException(SysTime(DateTime.init, seconds(1), UTC()));
}

// @@@DEPRECATED_2016-08@@@
/++
$(RED Deprecated. Please use the overload which takes a
$(REF Duration, core,time) for the fractional seconds. This overload
will be removed in August 2016.)

Params:
dateTime = The $(LREF DateTime) to use to set this $(LREF SysTime)'s
internal std time. As $(LREF DateTime) has no concept of
time zone, tz is used as its time zone.
fracSec = The fractional seconds portion of the time.
tz = The $(LREF2 .TimeZone, TimeZone) to use for this $(LREF SysTime). If null,
$(LREF LocalTime) will be used. The given $(LREF DateTime) is
assumed to be in the given time zone.

Throws:
$(LREF DateTimeException) if $(D fracSec) is negative.
+/
// Explicitly undocumented. It will be removed in August 2017. @@@DEPRECATED_2017-08@@@
deprecated("Please use the overload which takes a Duration instead of a FracSec.")
this(in DateTime dateTime, in FracSec fracSec, immutable TimeZone tz = null) @safe
{
Expand Down Expand Up @@ -2250,15 +2233,7 @@ public:
}


// @@@DEPRECATED_2016-08@@@
/++
$(RED Deprecated. Please use $(LREF fracSecs) instead of fracSec. It
uses a $(REF Duration, core,time) to represent the fractional seconds
instead of a $(REF FracSec, core,time). This overload will be removed
in August 2016.)

Fractional seconds past the second.
+/
// Explicitly undocumented. It will be removed in August 2017. @@@DEPRECATED_2017-08@@@
deprecated("Please use fracSecs (with an s) rather than fracSec (without an s). "
~"It returns a Duration instead of a FracSec, as FracSec is being deprecated.")
@property FracSec fracSec() @safe const nothrow
Expand Down Expand Up @@ -2324,22 +2299,7 @@ public:
}


// @@@DEPRECATED_2016-08@@@
/++
$(RED Deprecated. Please use $(LREF fracSecs) instead of fracSec. It
uses a $(REF Duration, core,time) to represent the fractional seconds
instead of a $(REF FracSec, core,time). This overload will be removed
in August 2016.)

Fractional seconds past the second.

Params:
fracSec = The fractional seconds to set this $(LREF SysTime)'s
fractional seconds to.

Throws:
$(LREF DateTimeException) if $(D fracSec) is negative.
+/
// Explicitly undocumented. It will be removed in August 2017. @@@DEPRECATED_2017-08@@@
deprecated("Please use fracSecs (with an s) rather than fracSec (without an s). "
~"It takes a Duration instead of a FracSec, as FracSec is being deprecated.")
@property void fracSec(FracSec fracSec) @safe
Expand Down Expand Up @@ -29082,13 +29042,6 @@ public:
this._utcOffset = utcOffset;
}

// Explicitly undocumented. It will be removed in August 2016. @@@DEPRECATED_2016-08@@@
deprecated("Please use the overload which takes a Duration.")
this(int utcOffset, string stdName = "") @safe immutable pure
{
this(dur!"minutes"(utcOffset), stdName);
}

@safe unittest
{
auto stz = new immutable SimpleTimeZone(dur!"hours"(-8), "PST");
Expand Down
27 changes: 0 additions & 27 deletions std/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -358,16 +358,6 @@ T enforce(E : Throwable = Exception, T)(T value, lazy const(char)[] msg = null,
return value;
}

// Explicitly undocumented. It will be removed in August 2016. @@@DEPRECATED_2016-08@@@
deprecated("Use the overload of enforce that takes file and line as function arguments.")
T enforce(T, string file, size_t line = __LINE__)
(T value, lazy const(char)[] msg = null)
if (is(typeof({ if (!value) {} })))
{
if (!value) bailOut(file, line, msg);
return value;
}

/++
Enforces that the given value is true.
Expand Down Expand Up @@ -502,23 +492,6 @@ private void bailOut(E : Throwable = Exception)(string file, size_t line, in cha
enforce!E2(s);
}

@system deprecated unittest
{
struct S
{
static int g;
~this() {} // impure & unsafe destructor
bool opCast(T:bool)() {
int* p = cast(int*)0; // unsafe operation
int n = g; // impure operation
return true;
}
}
S s;

enforce!(S, __FILE__, __LINE__)(s, "");
}

@safe unittest
{
// Issue 14685
Expand Down
Loading