diff --git a/changelog/bitmanip-toString.dd b/changelog/bitmanip-toString.dd new file mode 100644 index 000000000..e11fc12bd --- /dev/null +++ b/changelog/bitmanip-toString.dd @@ -0,0 +1,5 @@ +Deprecated `std.bitmanip.BitArray.toString` was removed + +The overload accepting a callable was deprecated since 2.079 +and has now been removed. Use the overload accepting an output +range instead. diff --git a/std/bitmanip.d b/std/bitmanip.d index f6653ac81..017cb5ac2 100644 --- a/std/bitmanip.d +++ b/std/bitmanip.d @@ -2506,22 +2506,6 @@ public: } } - // @@@DEPRECATED_2.089@@@ - deprecated("To be removed by 2.089. Please use the writer overload instead.") - void toString(scope void delegate(const(char)[]) sink, scope const ref FormatSpec!char fmt) const - { - const spec = fmt.spec; - switch (spec) - { - case 'b': - return formatBitString(sink); - case 's': - return formatBitArray(sink); - default: - throw new Exception("Unknown format specifier: %" ~ spec); - } - } - /// @system pure unittest {