Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions std/format.d
Original file line number Diff line number Diff line change
Expand Up @@ -5375,7 +5375,8 @@ if (isInputRange!Range)


// Legacy implementation

// @@@DEPRECATED_2019-01@@@
deprecated("Use std.demangle")
enum Mangle : char
{
Tvoid = 'v',
Expand Down Expand Up @@ -5419,31 +5420,6 @@ enum Mangle : char
Timmutable = 'y',
}

// return the TypeInfo for a primitive type and null otherwise. This
// is required since for arrays of ints we only have the mangled char
// to work from. If arrays always subclassed TypeInfo_Array this
// routine could go away.
private TypeInfo primitiveTypeInfo(Mangle m)
{
enum types = [
"void", "bool", "byte", "ubyte",
"short", "ushort", "int", "uint", "long", "ulong",
"float", "double", "real",
"char", "wchar", "dchar",
"ifloat", "idouble", "ireal",
"cfloat", "cdouble", "creal",
];
switch (m)
{
static foreach (type; types)
{
mixin("case Mangle.T"~type~": return typeid("~type~");");
}
default:
return null;
}
}

private bool needToSwapEndianess(Char)(const ref FormatSpec!Char f)
{
import std.system : endian, Endian;
Expand Down