Skip to content

Commit 71a40af

Browse files
committed
Remove not needed macrocallback code
This code added in 6951f0c was made obsolete in aee7fbc (v1.1). Correct macrocallback handling was added in 04f151b (v1.10) and since then macro caller arg is passed to typespecs as `term()` instead of `Macro.Env.t()`
1 parent 78f63d0 commit 71a40af

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/iex/lib/iex/introspection.ex

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,6 @@ defmodule IEx.Introspection do
630630
defp format_callback({{kind, name, _arity}, specs}) do
631631
Enum.map(specs, fn spec ->
632632
Typespec.spec_to_quoted(name, spec)
633-
|> Macro.prewalk(&drop_macro_env/1)
634633
|> format_typespec(kind, 0)
635634
end)
636635
end
@@ -659,11 +658,6 @@ defmodule IEx.Introspection do
659658
format_typespec(callbacks, :optional_callbacks, 0)
660659
end
661660

662-
defp drop_macro_env({name, meta, [{:"::", _, [_, {{:., _, [Macro.Env, :t]}, _, _}]} | args]}),
663-
do: {name, meta, args}
664-
665-
defp drop_macro_env(other), do: other
666-
667661
@doc """
668662
Prints the types for the given module and type documentation.
669663
"""

0 commit comments

Comments
 (0)