Skip to content

Commit 4038c59

Browse files
authored
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.
1 parent e1e326e commit 4038c59

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

eth/api_backend.go

-4
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,6 @@ func (b *EthAPIBackend) ChainDb() ethdb.Database {
368368
return b.eth.ChainDb()
369369
}
370370

371-
func (b *EthAPIBackend) EventMux() *event.TypeMux {
372-
return b.eth.EventMux()
373-
}
374-
375371
func (b *EthAPIBackend) AccountManager() *accounts.Manager {
376372
return b.eth.AccountManager()
377373
}

eth/backend.go

-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ func (s *Ethereum) Miner() *miner.Miner { return s.miner }
345345
func (s *Ethereum) AccountManager() *accounts.Manager { return s.accountManager }
346346
func (s *Ethereum) BlockChain() *core.BlockChain { return s.blockchain }
347347
func (s *Ethereum) TxPool() *txpool.TxPool { return s.txPool }
348-
func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux }
349348
func (s *Ethereum) Engine() consensus.Engine { return s.engine }
350349
func (s *Ethereum) ChainDb() ethdb.Database { return s.chainDb }
351350
func (s *Ethereum) IsListening() bool { return true } // Always listening

0 commit comments

Comments
 (0)