diff --git a/core/types/bal/bal_encoding.go b/core/types/bal/bal_encoding.go index 2777332c15..03f97f3809 100644 --- a/core/types/bal/bal_encoding.go +++ b/core/types/bal/bal_encoding.go @@ -28,7 +28,6 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/uint256" @@ -105,15 +104,6 @@ func (e *BlockAccessList) Hash() common.Hash { return crypto.Keccak256Hash(enc.Bytes()) } -func (e *BlockAccessList) EncodedSize() int { - b, err := rlp.EncodeToBytes(e) - if err != nil { - // TODO: proper to crit here? - log.Crit("failed to rlp encode access list", "err", err) - } - return len(b) -} - // encodingBalanceChange is the encoding format of BalanceChange. type encodingBalanceChange struct { TxIdx uint32