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