Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused warning during compile #735

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

wingyplus
Copy link
Contributor

Fixes issues below:

warning: variable "source" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/hover.ex:165: ElixirLS.LanguageServer.Providers.Hover.third_dep?/2

warning: variable "range" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:13: ElixirLS.LanguageServer.Providers.CodeAction.actions/2

warning: variable "diagnostic" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:22: ElixirLS.LanguageServer.Providers.CodeAction.prefix_with_underscore/2

warning: variable "message" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:22: ElixirLS.LanguageServer.Providers.CodeAction.prefix_with_underscore/2

warning: variable "diagnostic" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:45: ElixirLS.LanguageServer.Providers.CodeAction.remove_variable/2

warning: variable "id" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/server.ex:794: ElixirLS.LanguageServer.Server.handle_request/2

warning: variable "req" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/server.ex:794: ElixirLS.LanguageServer.Server.handle_request/2

Fixes issues below:

```
warning: variable "source" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/hover.ex:165: ElixirLS.LanguageServer.Providers.Hover.third_dep?/2

warning: variable "range" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:13: ElixirLS.LanguageServer.Providers.CodeAction.actions/2

warning: variable "diagnostic" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:22: ElixirLS.LanguageServer.Providers.CodeAction.prefix_with_underscore/2

warning: variable "message" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:22: ElixirLS.LanguageServer.Providers.CodeAction.prefix_with_underscore/2

warning: variable "diagnostic" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/providers/code_action.ex:45: ElixirLS.LanguageServer.Providers.CodeAction.remove_variable/2

warning: variable "id" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/server.ex:794: ElixirLS.LanguageServer.Server.handle_request/2

warning: variable "req" is unused (if the variable is not meant to be used, prefix it with an underscore)
  lib/language_server/server.ex:794: ElixirLS.LanguageServer.Server.handle_request/2
```
@lukaszsamson lukaszsamson merged commit 8ce39f3 into elixir-lsp:master Oct 3, 2022
@lukaszsamson
Copy link
Collaborator

Thanks

@wingyplus wingyplus deleted the fix-warning branch October 3, 2022 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants