diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-13 16:44:45 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-13 16:44:45 -0700 |
commit | 80843947e05cc464f54df7ad6838f5a16d9e7133 (patch) | |
tree | ed222f9ca09611c6df8663c22d63a05337183cc0 /lib/chessh/ssh | |
parent | b072f8421ce3caf4e00b3d6881259f595f57c045 (diff) | |
download | chessh-80843947e05cc464f54df7ad6838f5a16d9e7133.tar.gz chessh-80843947e05cc464f54df7ad6838f5a16d9e7133.zip |
Remove warnings
Diffstat (limited to 'lib/chessh/ssh')
-rw-r--r-- | lib/chessh/ssh/client/board/renderer.ex | 8 | ||||
-rw-r--r-- | lib/chessh/ssh/tui.ex | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/chessh/ssh/client/board/renderer.ex b/lib/chessh/ssh/client/board/renderer.ex index 8c0267c..845e538 100644 --- a/lib/chessh/ssh/client/board/renderer.ex +++ b/lib/chessh/ssh/client/board/renderer.ex @@ -237,14 +237,6 @@ defmodule Chessh.SSH.Client.Board.Renderer do end) end - defp render_flipped(rows, flipped) do - if !flipped do - rows - else - rows - end - end - defp make_board({tile_width, tile_height}) do rows = Enum.map(0..(@chess_board_height - 1), fn row -> diff --git a/lib/chessh/ssh/tui.ex b/lib/chessh/ssh/tui.ex index c1c763b..1838fb8 100644 --- a/lib/chessh/ssh/tui.ex +++ b/lib/chessh/ssh/tui.ex @@ -103,7 +103,7 @@ defmodule Chessh.SSH.Tui do def handle_ssh_msg( {:ssh_cm, connection_handler, {:pty, channel_id, want_reply?, {_term, width, height, _pixwidth, _pixheight, _opts}}}, - %State{client_pid: client_pid} = state + %State{} = state ) do Logger.debug("#{inspect(state.player_session)} has requested a PTY") :ssh_connection.reply_request(connection_handler, want_reply?, :success, channel_id) |