From 3a400fd1829e665480c792c26ece6254cdd3c4d4 Mon Sep 17 00:00:00 2001 From: Josh Nussbaum Date: Sat, 3 Feb 2018 23:48:15 -0500 Subject: [PATCH] Remove uneeded docs --- lib/xml_builder.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/xml_builder.ex b/lib/xml_builder.ex index 43feb81..80774c9 100644 --- a/lib/xml_builder.ex +++ b/lib/xml_builder.ex @@ -64,11 +64,13 @@ defmodule XmlBuilder do [:xml_decl | elements_with_prolog(elements) |> List.wrap] |> generate end + @doc false def doc(name, attrs_or_content) do IO.warn "doc/2 is deprecated. Use document/2 with generate/1 instead." [:xml_decl | [element(name, attrs_or_content)]] |> generate end + @doc false def doc(name, attrs, content) do IO.warn "doc/3 is deprecated. Use document/3 with generate/1 instead." [:xml_decl | [element(name, attrs, content)]] |> generate