Remove unused storage method
This commit is contained in:
@@ -44,13 +44,3 @@ func (s *DeeSee) Store(hero *deesee.Superhero) (err error) {
|
|||||||
*s = append(*s, hero)
|
*s = append(*s, hero)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindByName from superheros list
|
|
||||||
func (s *DeeSee) FindByName(name string) *deesee.Superhero {
|
|
||||||
for _, hero := range *s {
|
|
||||||
if strings.EqualFold(name, hero.Name) {
|
|
||||||
return hero
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user