Remove deprecated BitArray.toString overload

This commit is contained in:
MoonlightSentinel 2019-11-16 15:00:15 +01:00
parent 2ef69be4b2
commit 7044e16f3b
2 changed files with 5 additions and 16 deletions

View file

@ -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.

View file

@ -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
{