1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 06:32:28 +08:00

refactor: remove unused code

This commit is contained in:
dudaodong
2022-02-15 11:19:07 +08:00
parent d872d64fe0
commit 5e318a78d2
3 changed files with 1 additions and 17 deletions

View File

@@ -30,18 +30,8 @@ func ContainSubSlice[T any](slice, subslice []T) bool {
return false
}
}
return true
// unique := make(map[T]bool)
// for _, v := range slice {
// unique[v] = true
// }
// for _, v := range subslice {
// if !unique[v] {
// return false
// }
// }
// return true
return true
}
// Chunk creates an slice of elements split into groups the length of size.