Skip to content

Commit db36644

Browse files
committed
Take feedback: Remove renamed: arguments to the availability annotations.
1 parent f9d93ec commit db36644

File tree

1 file changed

+18
-36
lines changed

1 file changed

+18
-36
lines changed

Foundation/NSObjCRuntime.swift

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -434,74 +434,56 @@ public func NSClassFromString(_ aClassName: String) -> AnyClass? {
434434

435435
// The following types have been moved to FoundationNetworking. They exist here only to allow appropriate diagnostics to surface in the compiler.
436436

437-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
438-
renamed: "FoundationNetworking.CachedURLResponse")
437+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
439438
public typealias CachedURLResponse = AnyObject
440439

441-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
442-
renamed: "FoundationNetworking.HTTPCookie")
440+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
443441
public typealias HTTPCookie = AnyObject
444442

445-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
446-
renamed: "FoundationNetworking.HTTPCookieStorage")
443+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
447444
public typealias HTTPCookieStorage = AnyObject
448445

449-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
450-
renamed: "FoundationNetworking.HTTPURLResponse")
446+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
451447
public typealias HTTPURLResponse = AnyObject
452448

453-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
454-
renamed: "FoundationNetworking.URLResponse")
449+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
455450
public typealias URLResponse = AnyObject
456451

457-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
458-
renamed: "FoundationNetworking.URLSession")
452+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
459453
public typealias URLSession = AnyObject
460454

461-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
462-
renamed: "FoundationNetworking.URLSessionConfiguration")
455+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
463456
public typealias URLSessionConfiguration = AnyObject
464457

465-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
466-
renamed: "FoundationNetworking.URLSessionDataTask")
458+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
467459
public typealias URLSessionDataTask = AnyObject
468460

469-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
470-
renamed: "FoundationNetworking.URLSessionDownloadTask")
461+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
471462
public typealias URLSessionDownloadTask = AnyObject
472463

473-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
474-
renamed: "FoundationNetworking.URLSessionStreamTask")
464+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
475465
public typealias URLSessionStreamTask = AnyObject
476466

477-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
478-
renamed: "FoundationNetworking.URLSessionTask")
467+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
479468
public typealias URLSessionTask = AnyObject
480469

481-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
482-
renamed: "FoundationNetworking.URLSessionUploadTask")
470+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
483471
public typealias URLSessionUploadTask = AnyObject
484472

485-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
486-
renamed: "FoundationNetworking.URLAuthenticationChallenge")
473+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
487474
public typealias URLAuthenticationChallenge = AnyObject
488475

489-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
490-
renamed: "FoundationNetworking.URLCache")
476+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
491477
public typealias URLCache = AnyObject
492478

493-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
494-
renamed: "FoundationNetworking.URLCredential")
479+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
495480
public typealias URLCredential = AnyObject
496481

497-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
498-
renamed: "FoundationNetworking.URLCredentialStorage")
482+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
499483
public typealias URLCredentialStorage = AnyObject
500484

501-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
502-
renamed: "FoundationNetworking.URLProtectionSpace")
485+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
503486
public typealias URLProtectionSpace = AnyObject
504487

505-
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.",
506-
renamed: "FoundationNetworking.URLProtocol")
488+
@available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
507489
public typealias URLProtocol = AnyObject

0 commit comments

Comments
 (0)