chore: remove unused and incorrect IsEmpty method from TargetIDSet (#20939)

This commit is contained in:
Name
2025-02-17 00:43:15 +08:00
committed by GitHub
parent 60446e7ac0
commit d0e443172d

View File

@@ -20,11 +20,6 @@ package event
// TargetIDSet - Set representation of TargetIDs.
type TargetIDSet map[TargetID]struct{}
// IsEmpty returns true if the set is empty.
func (set TargetIDSet) IsEmpty() bool {
return len(set) != 0
}
// Clone - returns copy of this set.
func (set TargetIDSet) Clone() TargetIDSet {
setCopy := NewTargetIDSet()