diff --git a/accounts/abi/multicall/utils.go b/accounts/abi/multicall/utils.go index 045fb55891..ad5fb9075a 100644 --- a/accounts/abi/multicall/utils.go +++ b/accounts/abi/multicall/utils.go @@ -7,29 +7,3 @@ func mapArray[A any, B any](coll []A, mapper func(i A, index uint64) B) []B { } return out } - -func filterArray[A any](coll []A, criteria func(i A) bool) []A { - out := []A{} - for _, item := range coll { - if criteria(item) { - out = append(out, item) - } - } - return out -} - -func reduceArray[A any, B any](coll []A, processor func(accum B, next A) B, initialState B) B { - val := initialState - for _, item := range coll { - val = processor(val, item) - } - return val -} - -func flattenArrays[A any](coll [][]A) []A { - out := []A{} - for _, arr := range coll { - out = append(out, arr...) - } - return out -}