Skip to content

Commit 3c02551

Browse files
adonovangopherbot
authored andcommitted
internal/typesinternal: remove NewObjectpathFunc
Updates golang/go#58668 Fixes golang/go#60330 Change-Id: I06bf739e9278028cbafb174b93699fbdfe98882f Reviewed-on: https://go-review.googlesource.com/c/tools/+/496875 Run-TryBot: Alan Donovan <[email protected]> gopls-CI: kokoro <[email protected]> Auto-Submit: Alan Donovan <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 0729362 commit 3c02551

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

internal/typesinternal/types.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
"go/types"
1212
"reflect"
1313
"unsafe"
14-
15-
"golang.org/x/tools/go/types/objectpath"
1614
)
1715

1816
func SetUsesCgo(conf *types.Config) bool {
@@ -52,10 +50,3 @@ func ReadGo116ErrorData(err types.Error) (code ErrorCode, start, end token.Pos,
5250
}
5351

5452
var SetGoVersion = func(conf *types.Config, version string) bool { return false }
55-
56-
// NewObjectpathEncoder returns a function closure equivalent to
57-
// objectpath.For but amortized for multiple (sequential) calls.
58-
// It is a temporary workaround, pending the approval of proposal 58668.
59-
//
60-
//go:linkname NewObjectpathFunc golang.org/x/tools/go/types/objectpath.newEncoderFor
61-
func NewObjectpathFunc() func(types.Object) (objectpath.Path, error)

0 commit comments

Comments
 (0)