Skip to content

Commit

Permalink
Remove uneeded docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshnuss committed Feb 4, 2018
1 parent e137328 commit 3a400fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/xml_builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a400fd

Please sign in to comment.