diff --git a/internal/model/game/game.go b/internal/model/game/game.go index 68a5857..5449860 100644 --- a/internal/model/game/game.go +++ b/internal/model/game/game.go @@ -76,17 +76,6 @@ type BattleMeta struct { ObserverIDs []uuid.UUID `json:"observer_ids"` } -// TODO: remove if not needed -func (g Game) RaceVotes(raceID uuid.UUID) float64 { - var result float64 - for i := range g.Map.Planet { - if g.Map.Planet[i].OwnedBy(raceID) { - result += g.Map.Planet[i].Votes() - } - } - return result -} - func (g Game) MarshalBinary() (data []byte, err error) { return json.Marshal(&g) }