mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-05 18:03:10 +03:00
Removed unused function
This commit is contained in:
parent
a89bdfbb8d
commit
eeb14f0243
@ -34,17 +34,6 @@ func RemoveString(slice []string, index int) []string {
|
|||||||
return append(slice[:index], slice[index+1:]...)
|
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 {
|
func MoveString(slice []string, srcIndex int, dstIndex int) []string {
|
||||||
value := slice[srcIndex]
|
value := slice[srcIndex]
|
||||||
return InsertString(RemoveString(slice, srcIndex), value, dstIndex)
|
return InsertString(RemoveString(slice, srcIndex), value, dstIndex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user