summaryrefslogtreecommitdiff
path: root/web/web_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_match.c')
-rw-r--r--web/web_match.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/web/web_match.c b/web/web_match.c
index d4dac50..93ebf76 100644
--- a/web/web_match.c
+++ b/web/web_match.c
@@ -83,26 +83,7 @@ void match_opts_free()
match_opts = NULL;
}
-struct leg *state_active_leg()
-{
- return state->m->legs[state->m->active_player - 1];
-}
-
bool match_player_is_comp(int pn)
{
return state->m->players[pn - 1].type == PT_COMP;
}
-
-bool match_first_user_has_thrown()
-{
- for (int i = 0, np = state->m->n_players; i < np; ++i) {
- int pn = match_opts->throws_first + i;
- if (pn > np)
- pn -= np;
-
- if (!match_player_is_comp(pn))
- return !!state->m->legs[pn - 1]->n_visits;
- }
-
- return false;
-}