mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
std.format.spec: remove unused private function headUpToNextSpec.
This commit is contained in:
parent
c78646ba93
commit
109ecbc43c
1 changed files with 0 additions and 28 deletions
|
@ -596,34 +596,6 @@ if (is(Unqual!Char == Char))
|
|||
return w.data;
|
||||
}
|
||||
|
||||
private const(Char)[] headUpToNextSpec()
|
||||
{
|
||||
import std.array : appender;
|
||||
|
||||
auto w = appender!(typeof(return))();
|
||||
auto tr = trailing;
|
||||
|
||||
while (tr.length)
|
||||
{
|
||||
if (tr[0] == '%')
|
||||
{
|
||||
if (tr.length > 1 && tr[1] == '%')
|
||||
{
|
||||
tr = tr[2 .. $];
|
||||
w.put('%');
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
w.put(tr.front);
|
||||
tr.popFront();
|
||||
}
|
||||
}
|
||||
return w.data;
|
||||
}
|
||||
|
||||
/**
|
||||
Provides a string representation.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue