1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 01:05:35 -05:00

remove useless code

This commit is contained in:
Darien Raymond
2017-02-27 15:13:22 +01:00
parent d2897633a6
commit ec0986d6a9
4 changed files with 30 additions and 59 deletions

View File

@@ -27,12 +27,6 @@ type Listener interface {
Addr() net.Addr
}
type TCPHub struct {
listener Listener
connCallback ConnectionHandler
closed chan bool
}
func ListenTCP(ctx context.Context, address v2net.Address, port v2net.Port, conns chan<- Connection) (Listener, error) {
settings := StreamSettingsFromContext(ctx)
protocol := settings.GetEffectiveProtocol()