Skip to content

Commit

Permalink
Silence some unused variable/import warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
StanczakDominik committed Jun 2, 2024
1 parent f04d0af commit 05c89ec
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/teiserver/bridge/command_lib.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ defmodule Teiserver.Bridge.CommandLib do
@moduledoc """
"""
alias Teiserver.Data.Types, as: T
require Logger

@spec handle_command(Nostrum.Struct.Interaction.t(), map()) :: map()
Expand Down
2 changes: 0 additions & 2 deletions lib/teiserver/protocols/spring/spring_system_in.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
defmodule Teiserver.Protocols.Spring.SystemIn do
@moduledoc false

alias Teiserver.Account.LoginThrottleServer
alias Teiserver.Protocols.SpringIn
import Teiserver.Protocols.SpringOut, only: [reply: 5]
require Logger

@spec do_handle(String.t(), String.t(), String.t() | nil, Map.t()) :: Map.t()
Expand Down
5 changes: 3 additions & 2 deletions lib/teiserver/protocols/spring/spring_telemetry_in.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@ defmodule Teiserver.Protocols.Spring.TelemetryIn do
defp do_live_client_event(data, state) do
if String.length(data) < 1024 do
case Regex.run(~r/(\S+) (\S+)/u, data) do
[_, event_name, value64] ->
[_, _event_name, value64] ->
case Spring.decode_value(value64) do
{:ok, value} ->
{:ok, _value} ->
if state.userid do
# TODO: Do stuff with live client events
# Telemetry.log_live_client_event(state.userid, event_name, value)
# for now, they're prefixed with underscores to silence warnings
:ok
end

Expand Down
1 change: 0 additions & 1 deletion lib/teiserver_web/live/microblog/admin/post/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ defmodule TeiserverWeb.Microblog.Admin.PostLive.Show do
@moduledoc false
use TeiserverWeb, :live_view
alias Teiserver.Microblog
import TeiserverWeb.MicroblogComponents

@impl true
def mount(_params, _session, socket) do
Expand Down
1 change: 0 additions & 1 deletion lib/teiserver_web/live/microblog/admin/tag/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ defmodule TeiserverWeb.Microblog.Admin.TagLive.Index do
@moduledoc false
use TeiserverWeb, :live_view
alias Teiserver.Microblog
import TeiserverWeb.MicroblogComponents

@impl true
def mount(_params, _session, socket) do
Expand Down
1 change: 0 additions & 1 deletion lib/teiserver_web/live/microblog/admin/tag/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ defmodule TeiserverWeb.Microblog.Admin.TagLive.Show do
@moduledoc false
use TeiserverWeb, :live_view
alias Teiserver.Microblog
import TeiserverWeb.MicroblogComponents

@impl true
def mount(_params, _session, socket) do
Expand Down

0 comments on commit 05c89ec

Please sign in to comment.