Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
purpleclay committed Apr 1, 2023
1 parent bbc8daa commit 21aec48
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,6 @@ func trimAndPrefix(prefix string, strs ...string) []string {
return out
}

func trimAndRemove(rem string, strs ...string) []string {
out := make([]string, 0, len(strs))
for _, s := range strs {
trimmed := strings.TrimSpace(s)
if trimmed == "" || trimmed == rem {
continue
}

out = append(out, trimmed)
}

return out
}

func reverse(strs ...string) []string {
out := make([]string, 0, len(strs))
for i := len(strs) - 1; i >= 0; i-- {
Expand Down

0 comments on commit 21aec48

Please sign in to comment.