From 4307ccbe826653e3205aa876fa50d6f01ce4c533 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 29 Jul 2014 03:18:54 +0200 Subject: [PATCH] Fixed a Reader compilation bug. --- source/dyaml/reader.d | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 0617a31..19d3370 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -859,13 +859,6 @@ auto decodeUTF(ubyte[] input, UTFEncoding encoding) @safe pure nothrow 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. // // Params: