From 077c0999d26ea720c5ba232cf3fab21e1eddf6a4 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Sun, 8 Feb 2026 16:36:39 +0200 Subject: [PATCH] chore: remove unused func --- internal/model/game/game.go | 11 ----------- 1 file changed, 11 deletions(-) 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) }