tunnel: Prune Unused Functions (#1224)

* tunnel: remove unused link.setLoopback()

* tunnel: remove unused link.accept()

* tunnel: remove unused link.connect()
This commit is contained in:
Lars Lehtonen 2020-02-20 09:05:49 -08:00 committed by GitHub
parent 78df154a4d
commit 88457b812e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,32 +107,6 @@ func newLink(s transport.Socket) *link {
return l return l
} }
func (l *link) connect(addr string) error {
c, err := l.transport.Dial(addr)
if err != nil {
return err
}
l.Lock()
l.Socket = c
l.Unlock()
return nil
}
func (l *link) accept(sock transport.Socket) error {
l.Lock()
l.Socket = sock
l.Unlock()
return nil
}
func (l *link) setLoopback(v bool) {
l.Lock()
l.loopback = v
l.Unlock()
}
// setRate sets the bits per second rate as a float64 // setRate sets the bits per second rate as a float64
func (l *link) setRate(bits int64, delta time.Duration) { func (l *link) setRate(bits int64, delta time.Duration) {
// rate of send in bits per nanosecond // rate of send in bits per nanosecond