From a70e69a9ad697b2cf22c350c8a7814047f4972cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lino?= Date: Tue, 26 Jul 2022 16:41:34 +0200 Subject: [PATCH] clean comments --- .../scoreboard/generic/AbstractMatch.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/java/org/example/scoreboard/generic/AbstractMatch.java b/src/main/java/org/example/scoreboard/generic/AbstractMatch.java index c5804e6..8d8e9ed 100644 --- a/src/main/java/org/example/scoreboard/generic/AbstractMatch.java +++ b/src/main/java/org/example/scoreboard/generic/AbstractMatch.java @@ -82,24 +82,4 @@ public abstract class AbstractMatch implements IMatch, Comparable { return 0; } - - /*@Override - int compare(IMatch match1, IMatch match2) { - int totalScoreMatch1 = match1.getHomeTeamScore().getGoals() + match1.getAwayTeamScore().getGoals(); - int totalScoreMatch2 = match2.getHomeTeamScore().getGoals() + match2.getAwayTeamScore().getGoals(); - if (totalScoreMatch1 > totalScoreMatch2) { - return 1; - } else if (totalScoreMatch1 < totalScoreMatch2) { - return -1; - } else { - Date startMatch1 = match1.getStartDate(); - Date startMatch2 = match2.getStartDate(); - if (startMatch1.after(startMatch2)) { - return 1; - } else if(startMatch1.before(startMatch2)) { - return -1; - } - } - return 0; - }*/ } -- 2.24.1