diff --git a/utilities/utils.go b/utilities/utils.go index 18b2400..1d0dfd1 100644 --- a/utilities/utils.go +++ b/utilities/utils.go @@ -32,16 +32,3 @@ func (plist PairList) Len() int { func (plist PairList) Less(i, j int) bool { return plist[i].Value < plist[j].Value } - -// convert a PairList to a map[string]float64 -func OrderedKeys(plist PairList) ([]string, error) { - // Validation - if plist == nil { - return nil, errors.New("Invalid argument: plist") - } - orderedKeys := make([]string, len(plist)) - for _, pair := range plist { - orderedKeys = append(orderedKeys, pair.Key) - } - return orderedKeys, nil -}