From 2b7ea421992efe1d9ae508653868885a6b9c8766 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 5 Aug 2014 20:52:43 +0200 Subject: [PATCH] Removed the old (obsolete) Reader decoding method. --- source/dyaml/reader.d | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 508f786..55797e9 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -432,26 +432,6 @@ private: return decodeValidUTF8NoGC(buffer_, lastDecodedBufferOffset_); } - - // Decode the character starting at bufferOffset_ and move to the next - // character. - // - // Used in forward(). - dchar decodeAndAdvanceCurrent() @safe pure nothrow @nogc - { - assert(bufferOffset_ < buffer_.length, - "Attempted to decode past the end of a string"); - const b = buffer_[bufferOffset_]; - ++charIndex_; - ++decodeCount_; - if(b < 0x80) - { - ++bufferOffset_; - return b; - } - - return decodeValidUTF8NoGC(buffer_, bufferOffset_); - } } /// Used to build slices of already read data in Reader buffer, avoiding allocations.