Skip to content

Commit

Permalink
Remove unused methods from set constraint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 30, 2024
1 parent c9e9898 commit 89b2b89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions collection/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import (
)

type set[E any] interface {
Add(...E)
Remove(...E)
Clear()
Has(...E) bool
Len() int
Elements() iter.Seq[E]
Expand All @@ -18,6 +15,7 @@ type set[E any] interface {
type setptr[E, T any] interface {
*T
set[E]
Add(...E)
}

// IsEquivalentSet returns true if a and b contain the same elements.
Expand Down

0 comments on commit 89b2b89

Please sign in to comment.