chore: remove unused func
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user