From 99a70623cd394d7fea7c326e792f70303a6908b7 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Wed, 14 Jan 2026 20:08:26 +0800 Subject: [PATCH] remove unused func --- core/state/statedb.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index b9b90ec521..076b08fc96 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -28,7 +28,6 @@ import ( "time" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/core/state/snapshot" "github.com/ethereum/go-ethereum/core/stateless" @@ -53,17 +52,6 @@ const ( deletion ) -var addressHashCache = lru.NewCache[common.Address, common.Hash](10240) - -func getAddressHash(addr common.Address) common.Hash { - if hash, ok := addressHashCache.Get(addr); ok { - return hash - } - hash := crypto.Keccak256Hash(addr.Bytes()) - addressHashCache.Add(addr, hash) - return hash -} - type mutation struct { typ mutationType applied bool