Skip to content

Commit ea5e7c6

Browse files
findleyrgopherbot
authored andcommitted
gopls/internal/lsp/cache: delete unused mustEncode
Change-Id: Id487772ae3d2b252d1b946f42af9520b2c990613 Reviewed-on: https://go-review.googlesource.com/c/tools/+/524840 TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
1 parent cb85f8f commit ea5e7c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

gopls/internal/lsp/cache/analysis.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,14 +1395,6 @@ func requiredAnalyzers(analyzers []*analysis.Analyzer) []*analysis.Analyzer {
13951395
return result
13961396
}
13971397

1398-
func mustEncode(x interface{}) []byte {
1399-
var buf bytes.Buffer
1400-
if err := gob.NewEncoder(&buf).Encode(x); err != nil {
1401-
log.Fatalf("internal error encoding %T: %v", x, err)
1402-
}
1403-
return buf.Bytes()
1404-
}
1405-
14061398
var analyzeSummaryCodec = frob.CodecFor[*analyzeSummary]()
14071399

14081400
// -- data types for serialization of analysis.Diagnostic and source.Diagnostic --

0 commit comments

Comments
 (0)