Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 9, 2024
1 parent b85696a commit b7d33b3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ function CustomMatchGroupInput.extractMaps(match, matchOpponents)
map.opponents = Array.map(matchOpponents, function(opponent, opponentIndex)
return CustomMatchGroupInput.getParticipantsOfOpponent(map, opponent, opponentIndex)
end)
-- Match/Subobjects:luaGetMap sets a empty table as default value for participants.
-- Once subobjects have been refactored away this can be removed.
map.participants = nil

local opponentInfo = Array.map(matchOpponents, function(_, opponentIndex)
local score, status = MatchGroupInputUtil.computeOpponentScore({
Expand Down
3 changes: 0 additions & 3 deletions components/match2/wikis/fighters/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ function CustomMatchGroupInput.extractMaps(match, matchOpponents)
map.opponents = Array.map(matchOpponents, function(opponent, opponentIndex)
return CustomMatchGroupInput.getParticipantsOfOpponent(map, opponent, opponentIndex)
end)
-- Match/Subobjects:luaGetMap sets a empty table as default value for participants.
-- Once subobjects have been refactored away this can be removed.
map.participants = nil

local opponentInfo = Array.map(matchOpponents, function(_, opponentIndex)
local score, status = MatchGroupInputUtil.computeOpponentScore({
Expand Down
3 changes: 0 additions & 3 deletions components/match2/wikis/valorant/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ function CustomMatchGroupInput.extractMaps(match, opponents)
local winnerInput = map.winner --[[@as string?]]

map.opponents = MapFunctions.getParticipants(map, opponents)
-- Match/Subobjects:luaGetMap sets a empty table as default value for participants.
-- Once subobjects have been refactored away this can be removed.
map.participants = nil
map.extradata = MapFunctions.getExtraData(map, map.opponents)
map.finished = MatchGroupInputUtil.mapIsFinished(map)

Expand Down

0 comments on commit b7d33b3

Please sign in to comment.