diff --git a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua index 43ed6661907..0e2841a90c7 100644 --- a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua +++ b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft.lua @@ -50,14 +50,6 @@ function StarcraftMatchGroupInput.processMatch(match, options) local opponents = MatchFunctions.readOpponents(match) - -- TODO: check how we can get rid of this legacy stuff ... - Array.forEach(opponents, function(opponent, opponentIndex) - local opponentHasWon = Table.extract(opponent, 'win') - if not Logic.readBool(opponentHasWon) then return end - mw.ext.TeamLiquidIntegration.add_category('Pages with matches using `win` in opponents') - match.winner = match.winner or opponentIndex - end) - local games = MatchFunctions.extractMaps(match, opponents) local autoScoreFunction = MatchGroupInputUtil.canUseAutoScore(match, games) diff --git a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft_ffa.lua b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft_ffa.lua index e179dfa90a0..7748294c364 100644 --- a/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft_ffa.lua +++ b/components/match2/commons/starcraft_starcraft2/match_group_input_starcraft_ffa.lua @@ -103,12 +103,6 @@ function StarcraftFfaMatchGroupInput.processMatch(match, options) or match.pbg[opponent.placement] or DEFUALT_BACKGROUND - -- todo: get rid of the damn alias ... - if Logic.isEmpty(opponent.advances) and Logic.isNotEmpty(opponent.win) then - opponent.advances = opponent.win - mw.ext.TeamLiquidIntegration.add_category('Pages with ffa matches using `win=` in opponents') - end - opponent.extradata.advances = Logic.readBool(opponent.advances) or (match.bestof and (opponent.score or 0) >= match.bestof) or opponent.extradata.bg == ADVANCE_BACKGROUND @@ -262,14 +256,6 @@ function MapFunctions.readMap(mapInput, opponentCount, hasScores) return map end - -- todo: get rid of the damn alias ... - Array.forEach(Array.range(1, opponentCount), function(opponentIndex) - if not map['score' .. opponentIndex] and map['points' .. opponentIndex] then - mw.ext.TeamLiquidIntegration.add_category('Pages with ffa matches using `pointsX=` in maps') - map['score' .. opponentIndex] = map['points' .. opponentIndex] - end - end) - local opponentsInfo = Array.map(Array.range(1, opponentCount), function(opponentIndex) return MapFunctions.getOpponentInfo(mapInput, opponentIndex, hasScores) end)