This commit is contained in:
2026-10-03 12:28:21 +07:00
parent 3cdcd12fee
commit b88d30b1f1
2 changed files with 0 additions and 25 deletions
-10
View File
@@ -28,13 +28,3 @@ func mapTeamDetails(o *game_model.Team) *proto.Team {
team.ParticipantsCount = o.ParticipantsCount team.ParticipantsCount = o.ParticipantsCount
return team return team
} }
func mapTeams(
o []*game_model.Team,
) []*proto.Team {
res := make([]*proto.Team, 0, len(o))
for _, item := range o {
res = append(res, mapTeam(item))
}
return res
}
@@ -21,21 +21,6 @@ func mapScenariosLight(
return res return res
} }
func mapScenarios(
o []*repos.Scenario,
domain string,
) ([]*Scenario, error) {
res := make([]*Scenario, 0, len(o))
for _, item := range o {
scenario, err := mapScenario(item, domain)
if err != nil {
return nil, err
}
res = append(res, scenario)
}
return res, nil
}
func MapScenarioLight( func MapScenarioLight(
o *repos.Scenario, o *repos.Scenario,
domain string, domain string,