浏览代码

eth: delete unused RpcServer field

Felix Lange 10 年之前
父节点
当前提交
63758db379
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      eth/backend.go

+ 0 - 7
eth/backend.go

@@ -20,7 +20,6 @@ import (
 	"github.com/ethereum/go-ethereum/p2p"
 	"github.com/ethereum/go-ethereum/p2p/discover"
 	"github.com/ethereum/go-ethereum/p2p/nat"
-	"github.com/ethereum/go-ethereum/rpc"
 	"github.com/ethereum/go-ethereum/whisper"
 )
 
@@ -124,8 +123,6 @@ type Ethereum struct {
 	blockSub event.Subscription
 	miner    *miner.Miner
 
-	RpcServer rpc.RpcServer
-
 	logger logger.LogSystem
 
 	Mining  bool
@@ -268,10 +265,6 @@ func (s *Ethereum) Stop() {
 	s.txSub.Unsubscribe()    // quits txBroadcastLoop
 	s.blockSub.Unsubscribe() // quits blockBroadcastLoop
 
-	if s.RpcServer != nil {
-		s.RpcServer.Stop()
-	}
-
 	s.txPool.Stop()
 	s.eventMux.Stop()
 	s.blockPool.Stop()