Remove unused superhero constructor

This commit is contained in:
2023-02-08 17:55:45 +00:00
parent dffc832fa0
commit 6aebdc8b5e

View File

@@ -115,11 +115,6 @@ func SearchByPowers(heros []*Superhero, powers []string) (r []*Superhero) {
return
}
// NewSuperhero creates a new superhero
func NewSuperhero() *Superhero {
return &Superhero{}
}
// FindByName from superheros list
func FindByName(heros []*Superhero, name string) *Superhero {
for _, hero := range heros {