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