Removed non-slice scanBlockScalarBreaks.

This commit is contained in:
Ferdinand Majerech 2014-07-26 02:34:28 +02:00
parent f2cda9e799
commit 701b01dd20

View file

@ -1430,24 +1430,6 @@ final class Scanner
return tuple(maxIndent, endMark); return tuple(maxIndent, endMark);
} }
/// Scan line breaks at lower or specified indentation in a block scalar.
Tuple!(dstring, Mark) scanBlockScalarBreaks(const uint indent)
@trusted pure nothrow @nogc
{
reader_.sliceBuilder.begin();
Mark endMark = reader_.mark;
for(;;)
{
while(reader_.column < indent && reader_.peek() == ' ') { reader_.forward(); }
if(!"\n\r\u0085\u2028\u2029"d.canFind(reader_.peek())) { break; }
reader_.sliceBuilder.write(scanLineBreak());
endMark = reader_.mark;
}
return tuple(reader_.sliceBuilder.finish(), endMark);
}
/// Scan line breaks at lower or specified indentation in a block scalar. /// Scan line breaks at lower or specified indentation in a block scalar.
/// ///
/// Assumes that the caller is building a slice in Reader, and puts the scanned /// Assumes that the caller is building a slice in Reader, and puts the scanned