Skip to content

Commit

Permalink
Move some deprecations along.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdavis committed May 5, 2016
1 parent d10d2db commit 43227b1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
17 changes: 0 additions & 17 deletions std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -2681,23 +2681,6 @@ if (isDynamicArray!A)
_data.capacity = arr.length;
}

//Broken function. To be removed.
static if (is(T == immutable))
{
// Explicitly undocumented. It will be removed in March 2016. @@@DEPRECATED_2016-03@@@
deprecated ("Using this constructor will break the type system. Please fix your code to use `Appender!(T[]).this(T[] arr)' directly.")
this(Unqual!T[] arr) pure nothrow
{
this(cast(T[]) arr);
}

//temporary: For resolving ambiguity:
this(typeof(null))
{
this(cast(T[]) null);
}
}

/**
* Reserve at least newCapacity elements for appending. Note that more elements
* may be reserved than requested. If newCapacity <= capacity, then nothing is
Expand Down
11 changes: 0 additions & 11 deletions std/bitmanip.d
Original file line number Diff line number Diff line change
Expand Up @@ -737,17 +737,6 @@ unittest

struct BitArray
{
// Explicitly undocumented. They will be removed in April 2016. @@@DEPRECATED_2016-04@@@
deprecated("Use the constructor instead.")
@property void ptr(size_t* p) pure nothrow @nogc { _ptr = p; }
deprecated("Use .opIndex instead.")
@property inout(size_t)* ptr() inout pure nothrow @nogc { return _ptr; }

deprecated("Use .length instead.")
@property void len(size_t v) pure nothrow @nogc { _len = v; }
deprecated("Use .length instead.")
@property size_t len() const pure nothrow @nogc { return _len; }

private:

import std.format : FormatSpec;
Expand Down
4 changes: 0 additions & 4 deletions std/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -1423,10 +1423,6 @@ unittest //more alias this opCast
assert(!mayPointTo(A.init, p));
}

// Explicitly undocumented. It will be removed in May 2016. @@@DEPRECATED_2016-05@@@
deprecated ("pointsTo is ambiguous. Please use either of doesPointTo or mayPointTo")
alias pointsTo = doesPointTo;

/+
Returns true if the field at index $(D i) in ($D T) shares its address with another field.
Expand Down
4 changes: 0 additions & 4 deletions std/functional.d
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,6 @@ unittest
// functions without committing to a particular type of the function.
}

// Explicitly undocumented. It will be removed in March 2016. @@@DEPRECATED_2016-03@@@
deprecated("Please use std.functional.partial instead")
alias curry = partial;

// tests for partially evaluating callables
unittest
{
Expand Down

0 comments on commit 43227b1

Please sign in to comment.