aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-08-09 15:13:22 -0700
committerRobert Griesemer <gri@golang.org>2021-08-11 06:15:15 +0000
commit0888a8cd2dc3ad66e30ccb30eae8fbed065ea0f7 (patch)
tree5b9a61c463a1fde038868d293315d8baa6e23d79
parent7308d747e7914b1dbb446988c2094f96b8e5116d (diff)
downloadgo-0888a8cd2dc3ad66e30ccb30eae8fbed065ea0f7.tar.gz
go-0888a8cd2dc3ad66e30ccb30eae8fbed065ea0f7.zip
[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>
-rw-r--r--src/cmd/compile/internal/types2/typeparam.go7
1 files changed, 0 insertions, 7 deletions
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) }