Skip to content

Commit ff63137

Browse files
committed
Remove unnecessary protocol
1 parent 978317a commit ff63137

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Shouter/Shouter.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88

99
import Foundation
1010

11-
public protocol Notifier {
12-
func notify<T>(_ type: T.Type, block: (T) -> Void)
13-
}
14-
1511
public protocol NotificationRegistry {
1612
func register<T>(_ type: T.Type, observer: T)
1713
func unregister<T>(_ type: T.Type, observer: T)
1814
func unregister<T>(_ type: T.Type)
15+
16+
func notify<T>(_ type: T.Type, block: (T) -> Void)
1917
}
2018

21-
public class Shouter: Notifier, NotificationRegistry {
19+
public class Shouter: NotificationRegistry {
2220

2321
public static let `default` = Shouter()
2422

0 commit comments

Comments
 (0)