]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/types: remove unused Tie method
authorMatthew Dempsky <mdempsky@google.com>
Sat, 28 Aug 2021 05:53:48 +0000 (22:53 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 30 Aug 2021 02:40:35 +0000 (02:40 +0000)
Once upon a time, this was used by package walk to compute the
"conv[TIE]2[TIE]" function names, etc.; but it seems like those
callers have all changed to directly specializing on IsInterface and
IsEmptyInterface instead.

Change-Id: I629cdf076a09e7255ae293b8f879db0cdcf4de5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/345793
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/types/type.go

index 60bb7b46fa0e50806ba4e160af8ab663bf1e18da..c510a705f20051e8849cfe5163ec45e11fccbd7d 100644 (file)
@@ -1680,19 +1680,6 @@ func (t *Type) HasPointers() bool {
        return PtrDataSize(t) > 0
 }
 
-// Tie returns 'T' if t is a concrete type,
-// 'I' if t is an interface type, and 'E' if t is an empty interface type.
-// It is used to build calls to the conv* and assert* runtime routines.
-func (t *Type) Tie() byte {
-       if t.IsEmptyInterface() {
-               return 'E'
-       }
-       if t.IsInterface() {
-               return 'I'
-       }
-       return 'T'
-}
-
 var recvType *Type
 
 // FakeRecvType returns the singleton type used for interface method receivers.