Skip to content

Commit dd7c717

Browse files
Henry Wongstamblerre
Henry Wong
authored andcommitted
internal/lsp: remove the unused function 'markupContent'.
The last usage of 'markupContent' has been deleted in https://go-review.googlesource.com/c/tools/+/172958. Change-Id: I03296fa93069427339f17c7b2ad2267030a5b99b GitHub-Last-Rev: a85b88c GitHub-Pull-Request: #132 Reviewed-on: https://go-review.googlesource.com/c/tools/+/185237 Reviewed-by: Rebecca Stambler <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]>
1 parent 60762fc commit dd7c717

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

internal/lsp/hover.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ package lsp
66

77
import (
88
"context"
9-
"fmt"
10-
119
"golang.org/x/tools/internal/lsp/protocol"
1210
"golang.org/x/tools/internal/lsp/source"
1311
"golang.org/x/tools/internal/span"
@@ -52,19 +50,3 @@ func (s *Server) hover(ctx context.Context, params *protocol.TextDocumentPositio
5250
Range: &rng,
5351
}, nil
5452
}
55-
56-
func markupContent(decl, doc string, kind protocol.MarkupKind) protocol.MarkupContent {
57-
result := protocol.MarkupContent{
58-
Kind: kind,
59-
}
60-
switch kind {
61-
case protocol.PlainText:
62-
result.Value = decl
63-
case protocol.Markdown:
64-
result.Value = "```go\n" + decl + "\n```"
65-
}
66-
if doc != "" {
67-
result.Value = fmt.Sprintf("%s\n%s", doc, result.Value)
68-
}
69-
return result
70-
}

0 commit comments

Comments
 (0)