From bb9493d0ccb9eb8f869553d66e31386bdd3796dd Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sun, 7 Jul 2024 16:08:45 +0200 Subject: [PATCH] list-type.go: commented out an unused fuction --- list-type.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/list-type.go b/list-type.go index ce12731..4afb960 100644 --- a/list-type.go +++ b/list-type.go @@ -106,16 +106,16 @@ func (ls *ListType) TypeName() string { return "list" } -func (list *ListType) indexDeepCmp(target any) (index int) { - index = -1 - for i, item := range *list { - if reflect.DeepEqual(item, target) { - index = i - break - } - } - return -} +// func (list *ListType) indexDeepCmp(target any) (index int) { +// index = -1 +// for i, item := range *list { +// if reflect.DeepEqual(item, target) { +// index = i +// break +// } +// } +// return +// } func (ls *ListType) contains(t *ListType) (answer bool) { if len(*ls) >= len(*t) {