Remove unused peerImpl methods

This commit is contained in:
Matt Joiner 2021-10-20 16:35:45 +11:00
parent 200f5e5140
commit 92d3e1ed6d
3 changed files with 0 additions and 14 deletions

View File

@ -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
} }

View File

@ -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()
}

View File

@ -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()
}