]> Cypherpunks repositories - gostls13.git/commitdiff
go/types, types2: delete _TypeSet.includes - not used (cleanup)
authorRobert Griesemer <gri@golang.org>
Thu, 27 Jan 2022 23:00:57 +0000 (15:00 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 28 Jan 2022 02:40:34 +0000 (02:40 +0000)
Change-Id: Ia324c6185e36efd4ea7dc92d7c2233fec8f5a55f
Reviewed-on: https://go-review.googlesource.com/c/go/+/381494
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/typeset.go
src/go/types/typeset.go

index 348b8150d37accaa957d1ec064bfd5813d2778ba..7a1e1bdf2f6050258cc483b35804c0794f76f6f5 100644 (file)
@@ -107,11 +107,6 @@ func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll
 // singleType returns the single type in s if there is exactly one; otherwise the result is nil.
 func (s *_TypeSet) singleType() Type { return s.terms.singleType() }
 
-// includes reports whether t ∈ s.
-// TODO(gri) This function is not used anywhere anymore. Remove once we
-//           are clear that we don't need it elsewhere in the future.
-func (s *_TypeSet) includes(t Type) bool { return s.terms.includes(t) }
-
 // subsetOf reports whether s1 ⊆ s2.
 func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) }
 
index 2317177f034d0e997e80450d761b9ad9aef7ac36..4598daacb0fcfb169ad185eb81be7681e02b2300 100644 (file)
@@ -105,11 +105,6 @@ func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll
 // singleType returns the single type in s if there is exactly one; otherwise the result is nil.
 func (s *_TypeSet) singleType() Type { return s.terms.singleType() }
 
-// includes reports whether t ∈ s.
-// TODO(gri) This function is not used anywhere anymore. Remove once we
-//           are clear that we don't need it elsewhere in the future.
-func (s *_TypeSet) includes(t Type) bool { return s.terms.includes(t) }
-
 // subsetOf reports whether s1 ⊆ s2.
 func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) }