chore: remove unused func

This commit is contained in:
Ilia Denisov
2026-02-08 16:36:39 +02:00
parent ba5d4e1ba8
commit 077c0999d2
-11
View File
@@ -76,17 +76,6 @@ type BattleMeta struct {
ObserverIDs []uuid.UUID `json:"observer_ids"` 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) { func (g Game) MarshalBinary() (data []byte, err error) {
return json.Marshal(&g) return json.Marshal(&g)
} }