network: remove useless Done() method from the peer

It's internal state of the peer that no one should care about.
This commit is contained in:
Roman Khimov 2020-01-15 18:25:58 +03:00
parent f39d5d5a10
commit 7f0882767c
3 changed files with 16 additions and 35 deletions

View file

@ -183,10 +183,6 @@ func (p *localPeer) WriteMsg(msg *Message) error {
p.messageHandler(p.t, msg)
return nil
}
func (p *localPeer) Done() chan error {
done := make(chan error)
return done
}
func (p *localPeer) Version() *payload.Version {
return p.version
}