From bac25e8bd096d42e96abbba78bc03983f582389d Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Fri, 28 Apr 2023 14:35:43 +0200 Subject: [PATCH] core: remove unused ContractCode method from BlockChain --- core/blockchain_reader.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index a04323255caa..fd65cb2db32f 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -299,12 +299,6 @@ func (bc *BlockChain) TrieNode(hash common.Hash) ([]byte, error) { return bc.stateCache.TrieDB().Node(hash) } -// ContractCode retrieves a blob of data associated with a contract hash -// either from ephemeral in-memory cache, or from persistent storage. -func (bc *BlockChain) ContractCode(hash common.Hash) ([]byte, error) { - return bc.stateCache.ContractCode(common.Hash{}, hash) -} - // ContractCodeWithPrefix retrieves a blob of data associated with a contract // hash either from ephemeral in-memory cache, or from persistent storage. //