diff --git a/.travis.yml b/.travis.yml index f1eb79a03..86893158c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,12 @@ language: d d: dmd-2.071.0 install: - wget "https://raw.githubusercontent.com/dlang/dmd/master/src/checkwhitespace.d" -O ../checkwhitespace.d - - wget -q -O dscanner "http://releases.dlang.io/dscanner/0.3.0-git/dscanner" - - chmod +x dscanner + - git clone https://github.com/Hackerpilot/Dscanner + - (cd Dscanner && git checkout tags/v0.4.0-alpha2) + - (cd Dscanner && git submodule update --init --recursive) + - (cd Dscanner && make githash debug) + - mv Dscanner/dsc . + - rm -rf Dscanner script: - (cd .. && rdmd ./checkwhitespace.d $(find phobos -name '*.d')) - grep -E "(for|foreach|foreach_reverse|if|while)\(" $(find . -name '*.d'); test $? -eq 1 diff --git a/std/array.d b/std/array.d index 8ddc07a3e..d3cab3f91 100644 --- a/std/array.d +++ b/std/array.d @@ -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 diff --git a/std/bitmanip.d b/std/bitmanip.d index 62bfc1e7e..2dd497cf3 100644 --- a/std/bitmanip.d +++ b/std/bitmanip.d @@ -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; diff --git a/std/exception.d b/std/exception.d index ffcad84f2..cb570b418 100644 --- a/std/exception.d +++ b/std/exception.d @@ -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. diff --git a/std/functional.d b/std/functional.d index 2cadd0262..e84086846 100644 --- a/std/functional.d +++ b/std/functional.d @@ -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 {