From 21d0b306afc204d9b523a89914b6440dcc6d73cc Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Fri, 27 Aug 2021 22:53:48 -0700 Subject: [PATCH] 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 --- src/cmd/compile/internal/types/type.go | 13 ------------- 1 file changed, 13 deletions(-) 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. -- 2.50.0