Remove unused peerImpl methods
This commit is contained in:
parent
200f5e5140
commit
92d3e1ed6d
|
@ -8,7 +8,6 @@ import (
|
||||||
// BitTorrent protocol connections. Some methods are underlined so as to avoid collisions with
|
// BitTorrent protocol connections. Some methods are underlined so as to avoid collisions with
|
||||||
// legacy PeerConn methods.
|
// legacy PeerConn methods.
|
||||||
type peerImpl interface {
|
type peerImpl interface {
|
||||||
onNextRequestStateChanged()
|
|
||||||
updateRequests(reason string)
|
updateRequests(reason string)
|
||||||
writeInterested(interested bool) bool
|
writeInterested(interested bool) bool
|
||||||
|
|
||||||
|
@ -23,5 +22,4 @@ type peerImpl interface {
|
||||||
drop()
|
drop()
|
||||||
String() string
|
String() string
|
||||||
connStatusString() string
|
connStatusString() string
|
||||||
writeBufferFull() bool
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1665,7 +1665,3 @@ func (p *Peer) TryAsPeerConn() (*PeerConn, bool) {
|
||||||
pc, ok := p.peerImpl.(*PeerConn)
|
pc, ok := p.peerImpl.(*PeerConn)
|
||||||
return pc, ok
|
return pc, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PeerConn) onNextRequestStateChanged() {
|
|
||||||
p.tickleWriter()
|
|
||||||
}
|
|
||||||
|
|
|
@ -24,10 +24,6 @@ type webseedPeer struct {
|
||||||
|
|
||||||
var _ peerImpl = (*webseedPeer)(nil)
|
var _ peerImpl = (*webseedPeer)(nil)
|
||||||
|
|
||||||
func (me *webseedPeer) writeBufferFull() bool {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (me *webseedPeer) connStatusString() string {
|
func (me *webseedPeer) connStatusString() string {
|
||||||
return me.client.Url
|
return me.client.Url
|
||||||
}
|
}
|
||||||
|
@ -160,7 +156,3 @@ func (ws *webseedPeer) requestResultHandler(r Request, webseedRequest webseed.Re
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *webseedPeer) onNextRequestStateChanged() {
|
|
||||||
me.peer.applyNextRequestState()
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue