commit 8d16dc7158283187209aed0b14b6864243f5777e Author: David Fifield david@bamsoftware.com Date: Mon Nov 26 23:10:27 2012 -0800
Kill unused net.Conn implementation. --- websocket-transport/websocket-server.go | 21 --------------------- 1 files changed, 0 insertions(+), 21 deletions(-)
diff --git a/websocket-transport/websocket-server.go b/websocket-transport/websocket-server.go index 0703f91..a25d440 100644 --- a/websocket-transport/websocket-server.go +++ b/websocket-transport/websocket-server.go @@ -11,7 +11,6 @@ import ( "os" "os/signal" "sync" - "time" )
var ptInfo PtServerInfo @@ -94,26 +93,6 @@ func (conn *websocketConn) Close() (err error) { return }
-func (conn *websocketConn) LocalAddr() net.Addr { - return conn.Ws.Conn.LocalAddr() -} - -func (conn *websocketConn) RemoteAddr() net.Addr { - return conn.Ws.Conn.RemoteAddr() -} - -func (conn *websocketConn) SetDeadline(t time.Time) error { - return conn.Ws.Conn.SetDeadline(t) -} - -func (conn *websocketConn) SetReadDeadline(t time.Time) error { - return conn.Ws.Conn.SetReadDeadline(t) -} - -func (conn *websocketConn) SetWriteDeadline(t time.Time) error { - return conn.Ws.Conn.SetWriteDeadline(t) -} - func NewWebsocketConn(ws *Websocket) websocketConn { var conn websocketConn conn.Ws = ws
tor-commits@lists.torproject.org