chore: removed unused function from subnets
@@ -294,19 +294,6 @@ func (s Subnets) FilterByZone(zone string) (res Subnets) {
return
}
-// GetUniqueZones returns a slice containing the unique zones of the subnets
-func (s Subnets) GetUniqueZones() []string {
- keys := make(map[string]bool, 0)
- zones := []string{}
- for _, x := range s {
- if _, value := keys[x.AvailabilityZone]; !value {
- keys[x.AvailabilityZone] = true
- zones = append(zones, x.AvailabilityZone)
- }
- }
- return zones
-}
-
// RouteTable defines an AWS routing table.
type RouteTable struct {
ID string `json:"id"`
