diff --git a/src/main/java/org/example/scoreboard/generic/AbstractMatch.java b/src/main/java/org/example/scoreboard/generic/AbstractMatch.java index c5804e66505086c415d17d8e7dcb39f35ea2ba61..8d8e9ed885d53e9f6a1e9740a1493a96494b018e 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; - }*/ }