Remove warnings

This commit is contained in:
Logan Hunt 2023-01-13 16:44:45 -07:00
parent b072f8421c
commit 80843947e0
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49
2 changed files with 1 additions and 9 deletions

View File

@ -237,14 +237,6 @@ defmodule Chessh.SSH.Client.Board.Renderer do
end) end)
end end
defp render_flipped(rows, flipped) do
if !flipped do
rows
else
rows
end
end
defp make_board({tile_width, tile_height}) do defp make_board({tile_width, tile_height}) do
rows = rows =
Enum.map(0..(@chess_board_height - 1), fn row -> Enum.map(0..(@chess_board_height - 1), fn row ->

View File

@ -103,7 +103,7 @@ defmodule Chessh.SSH.Tui do
def handle_ssh_msg( def handle_ssh_msg(
{:ssh_cm, connection_handler, {:ssh_cm, connection_handler,
{:pty, channel_id, want_reply?, {_term, width, height, _pixwidth, _pixheight, _opts}}}, {:pty, channel_id, want_reply?, {_term, width, height, _pixwidth, _pixheight, _opts}}},
%State{client_pid: client_pid} = state %State{} = state
) do ) do
Logger.debug("#{inspect(state.player_session)} has requested a PTY") Logger.debug("#{inspect(state.player_session)} has requested a PTY")
:ssh_connection.reply_request(connection_handler, want_reply?, :success, channel_id) :ssh_connection.reply_request(connection_handler, want_reply?, :success, channel_id)