Skip to content

Commit f88db97

Browse files
committed
removed unused function
1 parent 8e05a86 commit f88db97

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: lsp/service.go

-11
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ type InitializeParams struct {
2727

2828
type InitializedParams struct{}
2929

30-
// Root returns the RootURI if set, or otherwise the RootPath with 'file://' prepended.
31-
func (p *InitializeParams) Root() DocumentURI {
32-
if p.RootURI != "" {
33-
return p.RootURI
34-
}
35-
if strings.HasPrefix(p.RootPath, "file://") {
36-
return DocumentURI(p.RootPath)
37-
}
38-
return DocumentURI("file://" + p.RootPath)
39-
}
40-
4130
type DocumentURI string
4231

4332
type ClientInfo struct {

0 commit comments

Comments
 (0)