list-type.go: commented out an unused fuction
This commit is contained in:
parent
f279bf163e
commit
bb9493d0cc
20
list-type.go
20
list-type.go
@ -106,16 +106,16 @@ func (ls *ListType) TypeName() string {
|
|||||||
return "list"
|
return "list"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (list *ListType) indexDeepCmp(target any) (index int) {
|
// func (list *ListType) indexDeepCmp(target any) (index int) {
|
||||||
index = -1
|
// index = -1
|
||||||
for i, item := range *list {
|
// for i, item := range *list {
|
||||||
if reflect.DeepEqual(item, target) {
|
// if reflect.DeepEqual(item, target) {
|
||||||
index = i
|
// index = i
|
||||||
break
|
// break
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (ls *ListType) contains(t *ListType) (answer bool) {
|
func (ls *ListType) contains(t *ListType) (answer bool) {
|
||||||
if len(*ls) >= len(*t) {
|
if len(*ls) >= len(*t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user