Skip to content

Commit

Permalink
[chore] remove unused func (open-telemetry#21495)
Browse files Browse the repository at this point in the history
This removes an unused fun introduced in open-telemetry#21153

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten committed May 5, 2023
1 parent 5f47f5b commit 50481c7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/mdatagen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"os"
"path/filepath"
"regexp"
"sort"
"strings"
"text/template"

Expand Down Expand Up @@ -132,16 +131,6 @@ func templatize(tmplFile string, md metadata) *template.Template {
"distroURL": func(name string) string {
return distros[name]
},
"keys": func(input map[string]string) []string {
keys := []string{}
for k := range input {
keys = append(keys, k)
}
sort.Slice(keys, func(i, j int) bool {
return keys[i] > keys[j]
})
return keys
},
// ParseFS delegates the parsing of the files to `Glob`
// which uses the `\` as a special character.
// Meaning on windows based machines, the `\` needs to be replaced
Expand Down

0 comments on commit 50481c7

Please sign in to comment.