From c93af460728eaf783b9f691115852c96b469c967 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Wed, 8 May 2019 21:55:44 +0200 Subject: [PATCH] Remove unused evaluate status method --- app/models/match.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/models/match.rb b/app/models/match.rb index 8ab9756..8b3ba33 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -25,16 +25,6 @@ class Match < ApplicationRecord errors.add(:stage_xor_group, 'Stage and Group missing or both present') unless stage.present? ^ group.present? end - def evaluate_status - if score_team1 < score_team2 - :team2_won - elsif score_team2 < score_team1 - :team1_won - else - group_match? ? :undecided : :in_progress - end - end - def group_match? group.present? end