internal/lsp/source: remove unused Session method

Change-Id: I4be81fd9a450ed3991127ddc4d4186b8bcd57fba
Reviewed-on: https://go-review.googlesource.com/c/tools/+/258857
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go
index 01b9526..71328c5 100644
--- a/internal/lsp/cache/view.go
+++ b/internal/lsp/cache/view.go
@@ -255,10 +255,6 @@
 	return tmpURI, cleanup, nil
 }
 
-func (v *View) Session() source.Session {
-	return v.session
-}
-
 // Name returns the user visible name of this view.
 func (v *View) Name() string {
 	return v.name
diff --git a/internal/lsp/source/view.go b/internal/lsp/source/view.go
index 309eb7b..90a5f4d 100644
--- a/internal/lsp/source/view.go
+++ b/internal/lsp/source/view.go
@@ -173,9 +173,6 @@
 // This is the level at which we maintain configuration like working directory
 // and build tags.
 type View interface {
-	// Session returns the session that created this view.
-	Session() Session
-
 	// Name returns the name this view was constructed with.
 	Name() string