]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unused peerImpl methods
authorMatt Joiner <anacrolix@gmail.com>
Wed, 20 Oct 2021 05:35:45 +0000 (16:35 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 20 Oct 2021 05:35:45 +0000 (16:35 +1100)
peer-impl.go
peerconn.go
webseed-peer.go

index 23ced725fbcac4fa6d8c77dc9095e8baeae053f8..eb926c748d46cf5d75825201511f1832b7b74f9a 100644 (file)
@@ -8,7 +8,6 @@ import (
 // BitTorrent protocol connections. Some methods are underlined so as to avoid collisions with
 // legacy PeerConn methods.
 type peerImpl interface {
-       onNextRequestStateChanged()
        updateRequests(reason string)
        writeInterested(interested bool) bool
 
@@ -23,5 +22,4 @@ type peerImpl interface {
        drop()
        String() string
        connStatusString() string
-       writeBufferFull() bool
 }
index a9384d7904779006b0b97c8038b65a3f679b62e0..48453f2bc571ba4431d2e92eb2fae0d5c1acb3d9 100644 (file)
@@ -1665,7 +1665,3 @@ func (p *Peer) TryAsPeerConn() (*PeerConn, bool) {
        pc, ok := p.peerImpl.(*PeerConn)
        return pc, ok
 }
-
-func (p *PeerConn) onNextRequestStateChanged() {
-       p.tickleWriter()
-}
index 8105a4bf546ba07f7137d60bfd7535503cccaad3..01518f450740f4de473b26dcbdd5bc0eaefc5229 100644 (file)
@@ -24,10 +24,6 @@ type webseedPeer struct {
 
 var _ peerImpl = (*webseedPeer)(nil)
 
-func (me *webseedPeer) writeBufferFull() bool {
-       return false
-}
-
 func (me *webseedPeer) connStatusString() string {
        return me.client.Url
 }
@@ -160,7 +156,3 @@ func (ws *webseedPeer) requestResultHandler(r Request, webseedRequest webseed.Re
                }
        }
 }
-
-func (me *webseedPeer) onNextRequestStateChanged() {
-       me.peer.applyNextRequestState()
-}