mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Remove deprecated BitArray.toString overload
This commit is contained in:
parent
2ef69be4b2
commit
7044e16f3b
2 changed files with 5 additions and 16 deletions
5
changelog/bitmanip-toString.dd
Normal file
5
changelog/bitmanip-toString.dd
Normal 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.
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue