From 77e61d32f63addbbb7451bc2ed38b39d7f5d218c Mon Sep 17 00:00:00 2001 From: Heschi Kreinick Date: Thu, 1 Oct 2020 13:59:45 -0400 Subject: [PATCH] internal/lsp/source: remove unused Session method Change-Id: I4be81fd9a450ed3991127ddc4d4186b8bcd57fba Reviewed-on: https://go-review.googlesource.com/c/tools/+/258857 Trust: Heschi Kreinick Run-TryBot: Heschi Kreinick gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Rebecca Stambler --- internal/lsp/cache/view.go | 4 ---- internal/lsp/source/view.go | 3 --- 2 files changed, 7 deletions(-) diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go index 01b9526ca9..71328c5401 100644 --- a/internal/lsp/cache/view.go +++ b/internal/lsp/cache/view.go @@ -255,10 +255,6 @@ func tempModFile(modFh, sumFH source.FileHandle) (tmpURI span.URI, cleanup func( 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 309eb7b089..90a5f4d09f 100644 --- a/internal/lsp/source/view.go +++ b/internal/lsp/source/view.go @@ -173,9 +173,6 @@ const ( // 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