Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvegamyhre committed Nov 18, 2023
1 parent 763fcc6 commit cedb1b6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/util/collections/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,3 @@ func Contains[T comparable](slice []T, element T) bool {
}
return false
}

func Remove[T any](slice []T, index int) []T {
if index < 0 || index >= len(slice) {
return slice
}
return append(slice[:index], slice[index+1:]...)
}

0 comments on commit cedb1b6

Please sign in to comment.