Skip to content

Commit

Permalink
fix: remove unused variables from monkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Sep 18, 2023
1 parent a504e7b commit fec818e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions priv/monkey/_next_ls_private_compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule NextLSPrivate.Tracer do
:ok
end

def trace({:alias, meta, alias, as, _opts} = term, env) do
def trace({:alias, meta, alias, as, _opts}, env) do
parent = parent_pid()

Process.send(
Expand All @@ -82,9 +82,8 @@ defmodule NextLSPrivate.Tracer do
:ok
end

def trace({:alias_reference, meta, module} = term, env) do
def trace({:alias_reference, meta, module}, env) do
parent = parent_pid()
# Process.send(parent, {:tracer, :dbg, {term, env.file}}, [])

alias_map = Map.new(env.aliases, fn {alias, mod} -> {mod, alias} end)

Expand Down Expand Up @@ -126,8 +125,7 @@ defmodule NextLSPrivate.Tracer do
:ok
end

def trace({type, meta, module, func, arity} = it, env)
when type in [:remote_function, :remote_macro, :imported_macro] do
def trace({type, meta, module, func, arity}, env) when type in [:remote_function, :remote_macro, :imported_macro] do
parent = parent_pid()

if type == :remote_macro && meta[:closing][:line] != meta[:line] do
Expand Down

0 comments on commit fec818e

Please sign in to comment.