From 7f6c045e0d1dac31444821c84730e718092a64d1 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Tue, 2 May 2023 10:56:08 +0200 Subject: [PATCH] core: remove unused ContractCode method from BlockChain (#27186) --- core/blockchain_reader.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index a04323255c..fd65cb2db3 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. //