From 8ed381bd56fdb00fc49b2222a92f67a632039e04 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Fri, 11 Jan 2019 01:01:58 -0330 Subject: [PATCH] remove deprecated Loader.loadAll() (#216) remove deprecated Loader.loadAll() merged-on-behalf-of: BBasile --- source/dyaml/loader.d | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index 7b7f82d..e241bca 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -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.