From: Robert Griesemer Date: Mon, 9 Aug 2021 22:13:22 +0000 (-0700) Subject: [dev.typeparams] cmd/compile/internal/types2: remove unused TypeParam.Bound method X-Git-Tag: go1.18beta1~1818^2^2~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0888a8cd2d;p=gostls13.git [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 Reviewed-by: Robert Findley --- diff --git a/src/cmd/compile/internal/types2/typeparam.go b/src/cmd/compile/internal/types2/typeparam.go index 12513ed6dd..4b4282efe0 100644 --- a/src/cmd/compile/internal/types2/typeparam.go +++ b/src/cmd/compile/internal/types2/typeparam.go @@ -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) }