diff --git a/webapp/src/Utils/Scoreboard/SingleTeamScoreboard.php b/webapp/src/Utils/Scoreboard/SingleTeamScoreboard.php index 4a8bc76ab4..9acae1c400 100644 --- a/webapp/src/Utils/Scoreboard/SingleTeamScoreboard.php +++ b/webapp/src/Utils/Scoreboard/SingleTeamScoreboard.php @@ -41,17 +41,7 @@ public function __construct( protected function calculateScoreboard(): void { - $rankCacheForTeam = null; - if ($this->rankCache !== null && count($this->rankCache) > 0) { - $rankCacheForTeam = $this->rankCache[0]; - } - $teamScore = $this->scores[$this->team->getTeamid()]; - if ($rankCacheForTeam !== null) { - $teamScore->numPoints += $rankCacheForTeam->getPointsRestricted(); - $teamScore->totalTime += $rankCacheForTeam->getTotaltimeRestricted(); - $teamScore->totalRuntime += $rankCacheForTeam->getTotalruntimeRestricted(); - } $teamScore->rank = $this->teamRank; // Loop all info the scoreboard cache and put it in our own data structure.