Remove unused storage method

This commit is contained in:
2023-02-08 17:54:29 +00:00
parent dcdcba47ce
commit dffc832fa0

View File

@@ -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
}