std.format.spec: remove unused private function headUpToNextSpec.

This commit is contained in:
berni44 2021-04-21 17:17:12 +02:00 committed by The Dlang Bot
parent c78646ba93
commit 109ecbc43c

View file

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