Skip to content

Commit be7fdb4

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 64e4b89 commit be7fdb4

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
@@ -635,7 +635,6 @@ defmodule IEx.Introspection do
635635
defp format_callback({{kind, name, _arity}, specs}) do
636636
Enum.map(specs, fn spec ->
637637
Typespec.spec_to_quoted(name, spec)
638-
|> Macro.prewalk(&drop_macro_env/1)
639638
|> format_typespec(kind, 0)
640639
end)
641640
end
@@ -664,11 +663,6 @@ defmodule IEx.Introspection do
664663
format_typespec(callbacks, :optional_callbacks, 0)
665664
end
666665

667-
defp drop_macro_env({name, meta, [{:"::", _, [_, {{:., _, [Macro.Env, :t]}, _, _}]} | args]}),
668-
do: {name, meta, args}
669-
670-
defp drop_macro_env(other), do: other
671-
672666
@doc """
673667
Prints the types for the given module and type documentation.
674668
"""

0 commit comments

Comments
 (0)