Commit Diff


commit - b714e9e06d490b28c46fed5f6e093dd569908848
commit + 755621adc48bd5d72563edcaa93d627eee0fef24
blob - 6eef3152ad34bb1bb5927911229766aceba239e7
blob + 8ebab5c10ad4d427357e5b72d158ec5cd4f012bf
--- session.go
+++ session.go
@@ -1,11 +1,7 @@
 package p9pnew
 
-import (
-	"net"
+import "golang.org/x/net/context"
 
-	"golang.org/x/net/context"
-)
-
 // Session provides the central abstraction for a 9p connection. Clients
 // implement sessions and servers serve sessions. Sessions can be proxied by
 // serving up a client session.
@@ -35,15 +31,3 @@ type Session interface {
 	// session implementation.
 	Version() (msize int, version string)
 }
-
-func Dial(ctx context.Context, addr string) (Session, error) {
-	c, err := net.Dial("tcp", addr)
-	if err != nil {
-		return nil, err
-	}
-
-	// BUG(stevvooe): Session doesn't actually close connection. Dial might
-	// not be the right interface.
-
-	return NewSession(ctx, c)
-}