Skip to content

Commit c7f1c51

Browse files
committed
[SR-6419] Remove obsoleted NotificationCenter.addObserver(forName:object:queue:usingBlock:)
1 parent c13b850 commit c7f1c51

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Foundation/NSNotification.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ open class NotificationCenter: NSObject {
188188
})
189189
}
190190

191-
@available(*,obsoleted:4.0,renamed:"addObserver(forName:object:queue:using:)")
192-
open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> NSObjectProtocol {
193-
return addObserver(forName: name, object: obj, queue: queue, using: block)
194-
}
195-
196191
open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
197192
let object = NSObject()
198193

0 commit comments

Comments
 (0)