Skip to content

Commit 56c333d

Browse files
committed
[SR-6419] Use @available(*, unavailable) instead of inappropriate @available(*, obsoleted: 4.0)
`swift` should be used instead of `*` with `obsoleted: 4.0` here. But somehow use `unavailable` (as requested).
1 parent b63c178 commit 56c333d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSNotification.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ open class NotificationCenter: NSObject {
188188
})
189189
}
190190

191-
@available(*,obsoleted:4.0,renamed:"addObserver(forName:object:queue:using:)")
191+
@available(*, unavailable, renamed: "addObserver(forName:object:queue:using:)")
192192
open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> NSObjectProtocol {
193193
return addObserver(forName: name, object: obj, queue: queue, using: block)
194194
}

0 commit comments

Comments
 (0)