Moving deprecations along.

This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
This commit is contained in:
Jonathan M Davis 2016-02-10 03:55:31 -08:00
parent 70db575ba8
commit c3cd933131
12 changed files with 18 additions and 79 deletions

View file

@ -496,7 +496,6 @@ $(COMMENT
$(LINK2 std_mmfile.html, std.mmfile)$(BR)
$(LINK2 std_socketstream.html, std.socketstream)$(BR)
$(LINK2 std_stream.html, std.stream)$(BR)
$(LINK2 std_syserror.html, std.syserror)$(BR)
$(LINK2 std_typetuple.html, std.typetuple)$(BR)
)
$(TD

View file

@ -163,7 +163,7 @@ PACKAGE_std = array ascii base64 bigint bitmanip compiler complex concurrency \
concurrencybase conv cstream csv datetime demangle encoding exception file format \
functional getopt json math mathspecial meta mmfile numeric \
outbuffer parallelism path process random signals socket socketstream stdint \
stdio stdiobase stream string syserror system traits typecons typetuple uni \
stdio stdiobase stream string system traits typecons typetuple uni \
uri utf uuid variant xml zip zlib
PACKAGE_std_algorithm = comparison iteration mutation package searching setops \
sorting

View file

@ -184,5 +184,6 @@ public import std.algorithm.searching;
public import std.algorithm.sorting;
static import std.functional;
// Explicitly undocumented. It will be removed in March 2017. @@@DEPRECATED_2017-03@@@
deprecated("Please use std.functional.forward instead.")
alias forward = std.functional.forward;

View file

@ -1419,8 +1419,12 @@ unittest
assert(a == [[1], [4, 5, 1], [4, 5]]);
}
// @@@DEPRECATED_2017-01@@@
/++
Alias for $(XREF_PACK algorithm,iteration,_splitter).
$(RED Deprecated. Use $(XREF_PACK algorithm,iteration,_splitter) instead.
This will be removed in January 2017.)
Alias for $(XREF_PACK algorithm,iteration,_splitter).
+/
deprecated("Please use std.algorithm.iteration.splitter instead.")
alias splitter = std.algorithm.iteration.splitter;
@ -2676,6 +2680,7 @@ if (isDynamicArray!A)
//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
{

View file

@ -720,6 +720,7 @@ 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.")
@ -1248,14 +1249,14 @@ public:
return hash;
}
// Explictly undocumented. It will be removed in January 2017. @@@DEPRECATED_2017-01@@@
// Explicitly undocumented. It will be removed in January 2017. @@@DEPRECATED_2017-01@@@
deprecated("Use the constructor instead.")
void init(bool[] ba) pure nothrow
{
this = BitArray(ba);
}
// Explictly undocumented. It will be removed in January 2017. @@@DEPRECATED_2017-01@@@
// Explicitly undocumented. It will be removed in January 2017. @@@DEPRECATED_2017-01@@@
deprecated("Use the constructor instead.")
void init(void[] v, size_t numbits) pure nothrow
{

View file

@ -4883,6 +4883,7 @@ bool isNaN(X)(X x) @nogc @trusted pure nothrow
assert(!isNaN(cast(real)-53.6));
}
// Explicitly undocumented. It will be removed in July 2016. @@@DEPRECATED_2016-07@@@
deprecated("isNaN is not defined for integer types")
bool isNaN(X)(X x) @nogc @trusted pure nothrow
if (isIntegral!(X))
@ -4962,6 +4963,7 @@ bool isFinite(X)(X x) @trusted pure nothrow @nogc
assert(!isFinite(real.infinity));
}
// Explicitly undocumented. It will be removed in July 2016. @@@DEPRECATED_2016-07@@@
deprecated("isFinite is not defined for integer types")
int isFinite(X)(X x) @trusted pure nothrow @nogc
if (isIntegral!(X))
@ -5085,6 +5087,7 @@ bool isSubnormal(X)(X x) @trusted pure nothrow @nogc
}
}
// Explicitly undocumented. It will be removed in July 2016. @@@DEPRECATED_2016-07@@@
deprecated("isSubnormal is not defined for integer types")
int isSubnormal(X)(X x) @trusted pure nothrow @nogc
if (isIntegral!X)
@ -5281,6 +5284,7 @@ int signbit(X)(X x) @nogc @trusted pure nothrow
}
// Explicitly undocumented. It will be removed in July 2016. @@@DEPRECATED_2016-07@@@
deprecated("signbit is not defined for integer types")
int signbit(X)(X x) @nogc @trusted pure nothrow
if (isIntegral!X)
@ -5347,6 +5351,7 @@ R copysign(R, X)(X to, R from) @trusted pure nothrow @nogc
}
}
// Explicitly undocumented. It will be removed in July 2016. @@@DEPRECATED_2016-07@@@
deprecated("copysign : from can't be of integer type")
R copysign(R, X)(X to, R from) @trusted pure nothrow @nogc
if (isIntegral!R)
@ -6960,6 +6965,7 @@ bool approxEqual(T, U)(T lhs, U rhs)
assert(approxEqual(10, a));
}
// Explicitly undocumented. They will be removed in March 2017. @@@DEPRECATED_2017-03@@@
// Included for backwards compatibility with Phobos1
deprecated("Phobos1 math functions are deprecated, use isNaN") alias isnan = isNaN;
deprecated("Phobos1 math functions are deprecated, use isFinite ") alias isfinite = isFinite;

View file

@ -2466,12 +2466,6 @@ $(D Range) that locks the file and allows fast writing to it.
_iobuf* handle_; // the unshared version of fps
int orientation_;
public:
deprecated("accessing fps/handle/orientation directly can break LockingTextWriter integrity")
{
alias fps = fps_;
alias handle = handle_;
alias orientation = orientation_;
}
this(ref File f) @trusted
{

View file

@ -1,52 +0,0 @@
// Written in the D programming language
// Placed in public domain.
// Written by Walter Bright
/**
Convert Win32 error code to string
$(RED This module has been deprecated. Please see
$(LINK2 std_windows_syserror.html, std.windows._syserror) instead).
Source: $(PHOBOSSRC std/_syserror.d)
*/
module std.syserror;
// Deprecated - instead use std.windows.syserror.sysErrorString()
deprecated("Please use std.windows.syserror.sysErrorString instead")
class SysError
{
private import core.stdc.stdio;
private import core.stdc.string;
private import std.string;
static string msg(uint errcode)
{
string result;
switch (errcode)
{
case 2: result = "file not found"; break;
case 3: result = "path not found"; break;
case 4: result = "too many open files"; break;
case 5: result = "access denied"; break;
case 6: result = "invalid handle"; break;
case 8: result = "not enough memory"; break;
case 14: result = "out of memory"; break;
case 15: result = "invalid drive"; break;
case 21: result = "not ready"; break;
case 32: result = "sharing violation"; break;
case 87: result = "invalid parameter"; break;
default:
auto r = new char[uint.sizeof * 3 + 1];
auto len = sprintf(r.ptr, "%u", errcode);
result = cast(string) r[0 .. len];
break;
}
return result;
}
}

View file

@ -1292,12 +1292,6 @@ public:
return value;
}
deprecated("Please use value_QWORD instead.")
ulong value_QWORD_LITTLEENDIAN()
{
return value_QWORD;
}
/**
Obtains the value as a binary blob.

View file

@ -42,7 +42,6 @@ public import std.stdint;
public import std.stdio;
public import std.stream;
public import std.string;
public import std.syserror;
public import std.system;
public import std.traits;
public import std.typetuple;

View file

@ -167,8 +167,7 @@ SRC_STD_ALLOC= std\experimental\allocator\common.d std\experimental\allocator\gc
std\experimental\allocator\package.d \
$(SRC_STD_ALLOC_BB)
SRC_STD_6= std\variant.d \
std\syserror.d std\zlib.d \
SRC_STD_6= std\variant.d std\zlib.d \
std\stream.d std\socket.d std\socketstream.d \
std\conv.d std\zip.d std\cstream.d \
$(SRC_STD_CONTAINER) $(SRC_STD_LOGGER) $(SRC_STD_ALLOC)
@ -190,7 +189,6 @@ SRC_STD= std\zlib.d std\zip.d std\stdint.d std\conv.d std\utf.d std\uri.d \
std\csv.d std\file.d std\compiler.d std\system.d \
std\outbuffer.d std\base64.d \
std\meta.d std\mmfile.d \
std\syserror.d \
std\random.d std\stream.d std\process.d \
std\socket.d std\socketstream.d std\format.d \
std\stdio.d std\uni.d std\uuid.d \
@ -555,7 +553,6 @@ cov : $(SRC_TO_COMPILE) $(LIB)
$(DMD) -conf= -cov=95 -unittest -main -run std\algorithm\setops.d
$(DMD) -conf= -cov=95 -unittest -main -run std\algorithm\sorting.d
$(DMD) -conf= -cov=83 -unittest -main -run std\variant.d
$(DMD) -conf= -cov=0 -unittest -main -run std\syserror.d
$(DMD) -conf= -cov=58 -unittest -main -run std\zlib.d
$(DMD) -conf= -cov=54 -unittest -main -run std\stream.d
$(DMD) -conf= -cov=53 -unittest -main -run std\socket.d

View file

@ -174,7 +174,6 @@ SRC_STD_5a=$(SRC_STD_ALGO_1)
SRC_STD_5b=$(SRC_STD_ALGO_2)
SRC_STD_6a=std\variant.d
SRC_STD_6b=std\syserror.d
SRC_STD_6c=std\zlib.d
SRC_STD_6d=std\stream.d
SRC_STD_6e=std\socket.d
@ -194,7 +193,6 @@ SRC_STD_ALL= $(SRC_STD_1_HEAVY) $(SRC_STD_2a_HEAVY) \
$(SRC_STD_math) \
$(SRC_STD_3) $(SRC_STD_3a) $(SRC_STD_3b) $(SRC_STD_3c) $(SRC_STD_4) \
$(SRC_STD_6a) \
$(SRC_STD_6b) \
$(SRC_STD_6c) \
$(SRC_STD_6d) \
$(SRC_STD_6e) \
@ -214,7 +212,6 @@ SRC_STD= std\zlib.d std\zip.d std\stdint.d std\conv.d std\utf.d std\uri.d \
std\csv.d std\file.d std\compiler.d std\system.d \
std\outbuffer.d std\base64.d \
std\meta.d std\mmfile.d \
std\syserror.d \
std\random.d std\stream.d std\process.d \
std\socket.d std\socketstream.d std\format.d \
std\stdio.d std\uni.d std\uuid.d \
@ -500,7 +497,6 @@ UNITTEST_OBJS= \
unittest5a.obj \
unittest5b.obj \
unittest6a.obj \
unittest6b.obj \
unittest6c.obj \
unittest6d.obj \
unittest6e.obj \
@ -526,7 +522,6 @@ unittest : $(LIB)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest5a.obj $(SRC_STD_5a)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest5b.obj $(SRC_STD_5b)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest6a.obj $(SRC_STD_6a)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest6b.obj $(SRC_STD_6b)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest6c.obj $(SRC_STD_6c)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest6d.obj $(SRC_STD_6d)
$(DMD) $(UDFLAGS) -c -unittest -ofunittest6e.obj $(SRC_STD_6e)