From 109ecbc43c6e00af764de17daf1ac39ee6f048be Mon Sep 17 00:00:00 2001 From: berni44 Date: Wed, 21 Apr 2021 17:17:12 +0200 Subject: [PATCH] std.format.spec: remove unused private function headUpToNextSpec. --- std/format/spec.d | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/std/format/spec.d b/std/format/spec.d index 9640dcf1e..d38248636 100644 --- a/std/format/spec.d +++ b/std/format/spec.d @@ -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.