From 4038c59845795a6b6b6a1ae834667b74ebae0aa4 Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Fri, 28 Feb 2025 04:07:21 -0800 Subject: [PATCH] eth: remove EventMux accessors (#30017) Hi, it seems these methods in the `backend.go` and `api_backend.go` files are not used that expose the eventMux, but that is not needed. --- eth/api_backend.go | 4 ---- eth/backend.go | 1 - 2 files changed, 5 deletions(-) diff --git a/eth/api_backend.go b/eth/api_backend.go index 66621190dd..853c786775 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -368,10 +368,6 @@ func (b *EthAPIBackend) ChainDb() ethdb.Database { return b.eth.ChainDb() } -func (b *EthAPIBackend) EventMux() *event.TypeMux { - return b.eth.EventMux() -} - func (b *EthAPIBackend) AccountManager() *accounts.Manager { return b.eth.AccountManager() } diff --git a/eth/backend.go b/eth/backend.go index f3a8bf3078..4c0fd9e68b 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -345,7 +345,6 @@ func (s *Ethereum) Miner() *miner.Miner { return s.miner } func (s *Ethereum) AccountManager() *accounts.Manager { return s.accountManager } func (s *Ethereum) BlockChain() *core.BlockChain { return s.blockchain } func (s *Ethereum) TxPool() *txpool.TxPool { return s.txPool } -func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux } func (s *Ethereum) Engine() consensus.Engine { return s.engine } func (s *Ethereum) ChainDb() ethdb.Database { return s.chainDb } func (s *Ethereum) IsListening() bool { return true } // Always listening