mirror of
https://github.com/golang/go
synced 2024-11-17 05:14:56 -07:00
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 <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>
This commit is contained in:
parent
a29d9aad7a
commit
21d0b306af
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user