summaryrefslogtreecommitdiff
path: root/pkg/event/aggregator.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-24 12:53:26 -0600
committermo khan <mo@mokhan.ca>2025-07-24 12:53:26 -0600
commit95c1a8f301745897e4dcd0f6b8367e6f85dd2080 (patch)
tree0ea6f8acc0bc63ddf949cf2c12c45300ab149d21 /pkg/event/aggregator.go
parentda928b0dbee3afd4042cd08ef45e6f03c41f47e0 (diff)
refactor: remove New()
Diffstat (limited to 'pkg/event/aggregator.go')
-rw-r--r--pkg/event/aggregator.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/event/aggregator.go b/pkg/event/aggregator.go
index 0beaf86..996a550 100644
--- a/pkg/event/aggregator.go
+++ b/pkg/event/aggregator.go
@@ -6,12 +6,6 @@ type Aggregator struct {
subscriptions map[Event][]Subscription
}
-func New() *Aggregator {
- return x.New[*Aggregator](
- WithoutSubscriptions(),
- )
-}
-
func WithoutSubscriptions() x.Option[*Aggregator] {
return WithSubscriptions(map[Event][]Subscription{})
}