diff --git a/runtime/internal/runtime/z_face.go b/runtime/internal/runtime/z_face.go index 84f82ce7..566fabf3 100644 --- a/runtime/internal/runtime/z_face.go +++ b/runtime/internal/runtime/z_face.go @@ -365,7 +365,7 @@ func NewItab(inter *InterfaceType, typ *Type) *Itab { ret.fun[0] = 0 } else { data := (*uintptr)(c.Advance(ptr, int(itabHdrSize))) - mthds := methods(u, inter.PkgPath_) + mthds := u.Methods() for i, m := range inter.Methods { fn := findMethod(mthds, m) if fn == nil { @@ -395,13 +395,6 @@ func findMethod(mthds []abi.Method, im abi.Imethod) abi.Text { return nil } -func methods(u *abi.UncommonType, from string) []abi.Method { - if u.PkgPath_ == from { - return u.Methods() - } - return u.ExportedMethods() -} - func IfaceType(i iface) *abi.Type { if i.tab == nil { return nil