Skip to content

Commit

Permalink
chore: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyabrain committed Aug 14, 2024
1 parent 27133a3 commit a77152c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
17 changes: 8 additions & 9 deletions lib/viral_spiral/game.ex
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
defmodule ViralSpiral.Game do
alias ViralSpiral.Game.Room
alias ViralSpiral.Game.State

@spec create_room(String.t()) :: Room.t()
def create_room(name) do
def create_room(_name) do
end

@spec join_room(String.t(), String.t()) :: Room.t()
def join_room(name, password) do
def join_room(_name, _password) do
end

def pass_card(state, player, to) do
def pass_card(_state, _player, _to) do
end

def keep_card(player) do
def keep_card(_player) do
end

def discard_card(player) do
def discard_card(_player) do
end

def turn_to_fake(player, card) do
def turn_to_fake(_player, _card) do
end

def cancel_player(player, target) do
def cancel_player(_player, _target) do
end

def viral_spiral(player, targets) do
def viral_spiral(_player, _targets) do
end
end
2 changes: 0 additions & 2 deletions lib/viral_spiral/game/room.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
defmodule ViralSpiral.Game.Room do
alias ViralSpiral.Game.Room

defstruct id: "",
name: "",
state: :uninitialized
Expand Down
8 changes: 1 addition & 7 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
defmodule ViralSpiral.MixProject do
use Mix.Project
alias ViralSpiral.Game.Turn
alias ViralSpiral.Game.Round
alias ViralSpiral.Game.Room
alias ViralSpiral.Game.Player
alias ViralSpiral.Game
alias ViralSpiral.Canon

def project do
[
Expand All @@ -20,7 +14,7 @@ defmodule ViralSpiral.MixProject do
# Docs
name: "Viral Spiral",
source_url: "https://github.com/tattle-made/viral-spiral",
homepage_url: "https://viralspiral.net",
homepage_url: "https://viralspiral.netlify.app/",
docs: [
main: "ViralSpiral",
extras: [
Expand Down
2 changes: 1 addition & 1 deletion test/viral_spiral/turn_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule ViralSpiral.TurnTest do
turn = Turn.new(round)
assert length(turn.pass_to) == 3

current_player = Enum.at(round.order, 0)
_current_player = Enum.at(round.order, 0)
to_pass_players = Enum.slice(round.order, 1..2)
turn = Turn.next(turn, to_pass_players)

Expand Down

0 comments on commit a77152c

Please sign in to comment.