diff --git a/triedb/pathdb/history_test.go b/triedb/pathdb/history_test.go index da0f5397f8..019276f640 100644 --- a/triedb/pathdb/history_test.go +++ b/triedb/pathdb/history_test.go @@ -284,18 +284,6 @@ func compareSet[k comparable](a, b map[k][]byte) bool { return true } -func compareList[k comparable](a, b []k) bool { - if len(a) != len(b) { - return false - } - for i := 0; i < len(a); i++ { - if a[i] != b[i] { - return false - } - } - return true -} - func compareStorages(a, b map[common.Address]map[common.Hash][]byte) bool { if len(a) != len(b) { return false @@ -311,19 +299,3 @@ func compareStorages(a, b map[common.Address]map[common.Hash][]byte) bool { } return true } - -func compareStorageList(a, b map[common.Address][]common.Hash) bool { - if len(a) != len(b) { - return false - } - for h, la := range a { - lb, ok := b[h] - if !ok { - return false - } - if !compareList(la, lb) { - return false - } - } - return true -}