Skip to content

Commit 720c0c7

Browse files
committed
fix warnings
1 parent 222bcb7 commit 720c0c7

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

apps/language_server/lib/language_server/tracer.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ defmodule ElixirLS.LanguageServer.Tracer do
33
"""
44
use GenServer
55
alias ElixirLS.LanguageServer.JsonRpc
6-
alias ElixirLS.LanguageServer.SourceFile
76
require Logger
87

9-
@version 3
10-
118
@tables ~w(modules calls)a
129

1310
for table <- @tables do
@@ -84,7 +81,7 @@ defmodule ElixirLS.LanguageServer.Tracer do
8481
end
8582

8683
@impl true
87-
def terminate(reason, state) do
84+
def terminate(reason, _state) do
8885
case reason do
8986
:normal ->
9087
:ok

apps/language_server/test/support/module_with_typespecs.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ defmodule ElixirSenseExample.ModuleWithTypespecs do
191191
end
192192

193193
@spec fun_with_default(atom, [{:foo, integer()} | {:bar, String.t()}]) :: :ok
194-
def fun_with_default(a \\ nil, options), do: :ok
194+
def fun_with_default(_a \\ nil, _options), do: :ok
195195

196196
@spec multiple_functions([{:foo, integer()}]) :: :ok
197-
def multiple_functions(options), do: :ok
197+
def multiple_functions(_options), do: :ok
198198

199199
@spec multiple_functions([{:bar, String.t()}]) :: :ok
200-
def multiple_functions(options, a), do: :ok
200+
def multiple_functions(_options, _a), do: :ok
201201
end
202202

203203
defmodule Behaviour do
@@ -206,7 +206,7 @@ defmodule ElixirSenseExample.ModuleWithTypespecs do
206206

207207
defmodule Impl do
208208
@behaviour Behaviour
209-
def some(a), do: :ok
209+
def some(_a), do: :ok
210210
end
211211

212212
defmodule MacroBehaviour do
@@ -215,6 +215,6 @@ defmodule ElixirSenseExample.ModuleWithTypespecs do
215215

216216
defmodule MacroImpl do
217217
@behaviour MacroBehaviour
218-
defmacro some(a), do: :ok
218+
defmacro some(_a), do: :ok
219219
end
220220
end

apps/language_server/test/support/modules_with_references.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ defmodule ElixirSense.Providers.ReferencesTest.Modules do
9797

9898
defmodule Caller6 do
9999
def func() do
100-
ElixirSense.Providers.ReferencesTest.Modules.Callee6.__info__(:function)
100+
ElixirSense.Providers.ReferencesTest.Modules.Callee6.__info__(:functions)
101101
ElixirSense.Providers.ReferencesTest.Modules.Callee6.module_info()
102102
end
103103
end

0 commit comments

Comments
 (0)