Skip to content

Commit 35496e2

Browse files
committed
Remove protocol so that dependencies can define their own
1 parent b74498c commit 35496e2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Shouter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Shouter"
3-
s.version = "0.2.0"
3+
s.version = "0.3.0"
44
s.summary = "A type safe, thread safe and memory safe alternative for NotificationCenter"
55
s.homepage = "https://github.com/ChaosCoder/Shouter"
66
s.license = { :type => 'MIT', :file => 'LICENSE.md' }

Shouter/Shouter.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@
88

99
import Foundation
1010

11-
public protocol NotificationRegistry {
12-
func register<T>(_ type: T.Type, observer: T)
13-
func unregister<T>(_ type: T.Type, observer: T)
14-
func unregister<T>(_ type: T.Type)
15-
16-
func notify<T>(_ type: T.Type, block: (T) -> Void)
17-
}
18-
19-
public class Shouter: NotificationRegistry {
11+
public class Shouter {
2012

2113
public static let `default` = Shouter()
2214

0 commit comments

Comments
 (0)