]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] cmd/compile/internal/types2: remove unused TypeParam.Bound method
authorRobert Griesemer <gri@golang.org>
Mon, 9 Aug 2021 22:13:22 +0000 (15:13 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 11 Aug 2021 06:15:15 +0000 (06:15 +0000)
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>
src/cmd/compile/internal/types2/typeparam.go

index 12513ed6dda5c59a182b3e024e53d0d819174b5e..4b4282efe0b4b513c6c38c09d4aebf167fb63a84 100644 (file)
@@ -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) }