remove deprecated Loader.loadAll() (#216)

remove deprecated Loader.loadAll()
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
Cameron Ross 2019-01-11 01:01:58 -03:30 committed by The Dlang Bot
parent 7a8e5d10ec
commit 8ed381bd56

View file

@ -203,23 +203,6 @@ struct Loader
return output;
}
/** Load all YAML documents.
*
* This is just a shortcut that iterates over all documents and returns them
* all at once. Calling loadAll after iterating over the node or vice versa
* will not return any documents, as they have all been parsed already.
*
* This can only be called once; this is enforced by contract.
*
* Returns: Array of root nodes of all documents in the file/stream.
*
* Throws: YAMLException on a parsing error.
*/
deprecated("Redundant, loader is now an InputRange") Node[] loadAll() @safe
{
import std.array: array;
return this.array;
}
/** Implements the empty range primitive.
*
* If there's no more documents left in the stream, this will be true.