[dev.typeparams] cmd/compile: remove now-unneeded check for '==' method for comparable type

Comparable type no longer has a special method '=='.

Change-Id: I152f324d83343a66300050479181a6607fb7ca26
Reviewed-on: https://go-review.googlesource.com/c/go/+/338409
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
This commit is contained in:
Dan Scales 2021-07-29 13:36:36 -07:00
parent 3e7571f6ff
commit 27283d208f

View file

@ -214,16 +214,6 @@ imethods:
if ipkg == "" {
ipkg = inter.pkgpath.name()
}
if iname == "==" {
// Don't need '==' method right now (from comparable),
// just fill in with a random pointer for now.
if k == 0 {
fun0 = unsafe.Pointer(m)
} else {
methods[k] = unsafe.Pointer(m)
}
continue imethods
}
for ; j < nt; j++ {
t := &xmhdr[j]
tname := typ.nameOff(t.name)