chore: code cleanup

This commit is contained in:
wwqgtxx
2023-01-16 12:11:34 +08:00
parent bec66e9e69
commit 4e4d741075
5 changed files with 0 additions and 15 deletions

View File

@ -123,9 +123,6 @@ func (vc *Conn) recvResponse() error {
}
func (vc *Conn) Upstream() any {
if wrapper, ok := vc.ExtendedConn.(*N.ExtendedConnWrapper); ok {
return wrapper.Conn
}
return vc.ExtendedConn
}

View File

@ -17,7 +17,6 @@ import (
"strings"
"sync"
"time"
_ "unsafe"
"github.com/Dreamacro/clash/common/buf"
N "github.com/Dreamacro/clash/common/net"
@ -25,9 +24,6 @@ import (
"github.com/gorilla/websocket"
)
//go:linkname maskBytes github.com/gorilla/websocket.maskBytes
func maskBytes(key [4]byte, pos int, b []byte) int
type websocketConn struct {
conn *websocket.Conn
reader io.Reader