Remove unused superhero constructor
This commit is contained in:
@@ -115,11 +115,6 @@ func SearchByPowers(heros []*Superhero, powers []string) (r []*Superhero) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSuperhero creates a new superhero
|
|
||||||
func NewSuperhero() *Superhero {
|
|
||||||
return &Superhero{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FindByName from superheros list
|
// FindByName from superheros list
|
||||||
func FindByName(heros []*Superhero, name string) *Superhero {
|
func FindByName(heros []*Superhero, name string) *Superhero {
|
||||||
for _, hero := range heros {
|
for _, hero := range heros {
|
||||||
|
|||||||
Reference in New Issue
Block a user