Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 21, 2021
1 parent a89bdfb commit eeb14f0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions utils/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ func RemoveString(slice []string, index int) []string {
return append(slice[:index], slice[index+1:]...)
}

func UniqueStrings(slice []string) []string {
var unique []string
for _, s := range slice {
if StringInSlice(s, unique) {
continue
}
unique = append(unique, s)
}
return unique
}

func MoveString(slice []string, srcIndex int, dstIndex int) []string {
value := slice[srcIndex]
return InsertString(RemoveString(slice, srcIndex), value, dstIndex)
Expand Down

0 comments on commit eeb14f0

Please sign in to comment.