mirror of
https://github.com/golang/go
synced 2024-11-26 04:58:00 -07:00
[dev.typeparams] cmd/compile/internal/types2: remove unused TypeParam.Bound method
Use TypeParam.Constraint instead. Change-Id: Iebd77d304f2b7238baa231fb9869c964f66ea355 Reviewed-on: https://go-review.googlesource.com/c/go/+/340990 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
7308d747e7
commit
0888a8cd2d
@ -80,13 +80,6 @@ func (t *TypeParam) SetConstraint(bound Type) {
|
||||
t.bound = bound
|
||||
}
|
||||
|
||||
// Bound returns the constraint interface of t.
|
||||
// Deprecated. Only here for the compiler.
|
||||
// TODO(gri) remove in favor of uses of Constraint.
|
||||
func (t *TypeParam) Bound() *Interface {
|
||||
return t.iface()
|
||||
}
|
||||
|
||||
func (t *TypeParam) Underlying() Type { return t }
|
||||
func (t *TypeParam) String() string { return TypeString(t, nil) }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user