Fixed a Reader compilation bug.

This commit is contained in:
Ferdinand Majerech 2014-07-29 03:18:54 +02:00
parent 952726aa5e
commit 4307ccbe82

View file

@ -859,13 +859,6 @@ auto decodeUTF(ubyte[] input, UTFEncoding encoding) @safe pure nothrow
Result result; Result result;
final switch(encoding)
{
case UTFEncoding.UTF_8: result.maxChars = input.length; break;
case UTFEncoding.UTF_16: result.maxChars = input.length / 2; break;
case UTFEncoding.UTF_32: result.maxChars = input.length / 2; break;
}
// Decode input_ if it's encoded as UTF-8 or UTF-16. // Decode input_ if it's encoded as UTF-8 or UTF-16.
// //
// Params: // Params: