recator, test: race relation
This commit is contained in:
@@ -29,19 +29,6 @@ func (c Controller) GiveVotes(actor, acceptor string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// FIXME: remove, not a command
|
||||
func (c Controller) Relation(actor, acceptor string) (game.Relation, error) {
|
||||
r1, err := c.Cache.validActor(actor)
|
||||
if err != nil {
|
||||
return game.Relation(""), err
|
||||
}
|
||||
r2, err := c.Cache.validRace(acceptor)
|
||||
if err != nil {
|
||||
return game.Relation(""), err
|
||||
}
|
||||
return c.Cache.Relation(r1, r2), nil
|
||||
}
|
||||
|
||||
func (c Controller) UpdateRelation(actor, acceptor string, rel game.Relation) error {
|
||||
ri, err := c.Cache.validActor(actor)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user