Skip to content

Commit

Permalink
Remove unused docs_from_files
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 5, 2022
1 parent 4ead53d commit a43392a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/ex_doc/retriever.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defmodule ExDoc.Retriever do
def docs_from_dir(dir, config) when is_binary(dir) do
files = Path.wildcard(Path.expand("*.beam", dir))

docs_from_files(files, config)
files
|> Enum.map(&filename_to_module/1)
|> docs_from_modules(config)
end

Expand All @@ -26,15 +27,6 @@ defmodule ExDoc.Retriever do
|> sort_modules(config)
end

@doc """
Extract documentation from all modules in the specified list of files
"""
@spec docs_from_files([Path.t()], ExDoc.Config.t()) :: [ExDoc.ModuleNode.t()]
def docs_from_files(files, _config) when is_list(files) do
files
|> Enum.map(&filename_to_module(&1))
end

@doc """
Extract documentation from all modules in the list `modules`
"""
Expand Down

0 comments on commit a43392a

Please sign in to comment.