Skip to content

Commit

Permalink
chore: Remove unused verbOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfloyd committed Dec 1, 2023
1 parent 8d48c94 commit ef170d2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions errorlint/printf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,6 @@ import (
"strings"
)

func verbOrder(verbs []verb, numArgs int) [][]verb {
orderedVerbs := make([][]verb, numArgs)
i := 0
for _, v := range verbs {
if v.index != -1 {
i = v.index - 1
}
if i >= len(orderedVerbs) {
continue
}
orderedVerbs[i] = append(orderedVerbs[i], v)
verbs = verbs[1:]
i++
}
return orderedVerbs
}

type verb struct {
format string
formatOffset int
Expand Down

0 comments on commit ef170d2

Please sign in to comment.