remove an unused UTF conversion function (#230)

remove an unused UTF conversion function
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
This commit is contained in:
Cameron Ross 2019-02-05 05:10:18 -03:30 committed by The Dlang Bot
parent dc5ee1a6ac
commit 12a5732b1c

View file

@ -2002,14 +2002,3 @@ struct Scanner
return '\0';
}
}
private:
/// A nothrow function that converts a dchar[] to a string.
string utf32To8(C)(C[] str)
if(is(Unqual!C == dchar))
{
try { return str.to!string; }
catch(ConvException e) { assert(false, "Unexpected invalid UTF-32 string"); }
catch(Exception e) { assert(false, "Unexpected exception during UTF-8 encoding"); }
}