Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lib/iex/lib/iex/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ defmodule IEx.Introspection do
defp format_callback({{kind, name, _arity}, specs}) do
Enum.map(specs, fn spec ->
Typespec.spec_to_quoted(name, spec)
|> Macro.prewalk(&drop_macro_env/1)
|> format_typespec(kind, 0)
end)
end
Expand Down Expand Up @@ -664,11 +663,6 @@ defmodule IEx.Introspection do
format_typespec(callbacks, :optional_callbacks, 0)
end

defp drop_macro_env({name, meta, [{:"::", _, [_, {{:., _, [Macro.Env, :t]}, _, _}]} | args]}),
do: {name, meta, args}

defp drop_macro_env(other), do: other

@doc """
Prints the types for the given module and type documentation.
"""
Expand Down
Loading