From 98c66857bbb0dbef7fc770fc02d4cf28412d3b9c Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Wed, 23 Jul 2014 01:36:38 +0200 Subject: [PATCH] const(dstring) was redundant. --- source/dyaml/reader.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 6cdf343..ea9389c 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -71,6 +71,7 @@ final class Reader uint bufferOffset_ = 0; // Index of the current character in the buffer. size_t charIndex_ = 0; + // Current line in file. uint line_; // Current column in file. @@ -154,7 +155,7 @@ final class Reader /// buffer; in that case the returned slice will be shorter. /// /// Returns: Characters starting at current position or an empty slice if out of bounds. - const(dstring) prefix(size_t length) @safe pure nothrow const @nogc + dstring prefix(size_t length) @safe pure nothrow const @nogc { return slice(0, length); } @@ -170,7 +171,7 @@ final class Reader /// slice will be shorter. /// /// Returns: Slice into the internal buffer or an empty slice if out of bounds. - const(dstring) slice(size_t start, size_t end) @trusted pure nothrow const @nogc + dstring slice(size_t start, size_t end) @trusted pure nothrow const @nogc { end += bufferOffset_; start += bufferOffset_;