From 88457b812e7e69901dfef5e1fe55a4c0500ac654 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 20 Feb 2020 09:05:49 -0800 Subject: [PATCH] tunnel: Prune Unused Functions (#1224) * tunnel: remove unused link.setLoopback() * tunnel: remove unused link.accept() * tunnel: remove unused link.connect() --- tunnel/link.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tunnel/link.go b/tunnel/link.go index b05a25b2..3df54cc5 100644 --- a/tunnel/link.go +++ b/tunnel/link.go @@ -107,32 +107,6 @@ func newLink(s transport.Socket) *link { 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 func (l *link) setRate(bits int64, delta time.Duration) { // rate of send in bits per nanosecond