From: Matthew Dempsky Date: Sat, 28 Aug 2021 05:53:48 +0000 (-0700) Subject: cmd/compile/internal/types: remove unused Tie method X-Git-Tag: go1.18beta1~1582 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=21d0b306afc204d9b523a89914b6440dcc6d73cc;p=gostls13.git cmd/compile/internal/types: remove unused Tie method 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 Run-TryBot: Matthew Dempsky TryBot-Result: Go Bot Reviewed-by: Cuong Manh Le --- diff --git a/src/cmd/compile/internal/types/type.go b/src/cmd/compile/internal/types/type.go index 60bb7b46fa..c510a705f2 100644 --- a/src/cmd/compile/internal/types/type.go +++ b/src/cmd/compile/internal/types/type.go @@ -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.