internal/lsp/source: delete unused Snapshot.IsSaved

Change-Id: I0f71798d81618a0a9bb992056a3c2d5f71aed150
Reviewed-on: https://go-review.googlesource.com/c/tools/+/263207
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Robert Findley <rfindley@google.com>
diff --git a/internal/lsp/cache/snapshot.go b/internal/lsp/cache/snapshot.go
index 71ef114..c96ad69 100644
--- a/internal/lsp/cache/snapshot.go
+++ b/internal/lsp/cache/snapshot.go
@@ -829,14 +829,6 @@
 	return open
 }
 
-func (s *snapshot) IsSaved(uri span.URI) bool {
-	s.mu.Lock()
-	defer s.mu.Unlock()
-
-	ovl, open := s.files[uri].(*overlay)
-	return !open || ovl.saved
-}
-
 func (s *snapshot) awaitLoaded(ctx context.Context) error {
 	// Do not return results until the snapshot's view has been initialized.
 	s.AwaitInitialized(ctx)
diff --git a/internal/lsp/source/view.go b/internal/lsp/source/view.go
index 649cecc..291dfe3 100644
--- a/internal/lsp/source/view.go
+++ b/internal/lsp/source/view.go
@@ -54,9 +54,6 @@
 	// IsOpen returns whether the editor currently has a file open.
 	IsOpen(uri span.URI) bool
 
-	// IsSaved returns whether the contents are saved on disk or not.
-	IsSaved(uri span.URI) bool
-
 	// IgnoredFile reports if a file would be ignored by a `go list` of the whole
 	// workspace.
 	IgnoredFile(uri span.URI) bool