From 3d0df1f0fc5f233c94ab05babbc0a41f25c092ca Mon Sep 17 00:00:00 2001 From: Connor Wakamo Date: Mon, 29 Jan 2018 01:54:53 -0500 Subject: [PATCH] Deleted CustomPlaygroundQuickLookable conformances from Foundation types. This protocol is being removed from the Swift standard library. --- Foundation/Date.swift | 13 ------------- Foundation/NSRange.swift | 6 ------ Foundation/URL.swift | 6 ------ 3 files changed, 25 deletions(-) diff --git a/Foundation/Date.swift b/Foundation/Date.swift index 81b7b70028..f5a84e5108 100644 --- a/Foundation/Date.swift +++ b/Foundation/Date.swift @@ -254,19 +254,6 @@ extension Date : _ObjectTypeBridgeable { } } -extension Date : CustomPlaygroundQuickLookable { - var summary: String { - let df = DateFormatter() - df.dateStyle = .medium - df.timeStyle = .short - return df.string(from: self) - } - - public var customPlaygroundQuickLook: PlaygroundQuickLook { - return .text(summary) - } -} - extension Date : Codable { public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() diff --git a/Foundation/NSRange.swift b/Foundation/NSRange.swift index 5d829e4212..ecbc71a976 100644 --- a/Foundation/NSRange.swift +++ b/Foundation/NSRange.swift @@ -309,12 +309,6 @@ extension NSRange : CustomReflectable { } } -extension NSRange : CustomPlaygroundQuickLookable { - public var customPlaygroundQuickLook: PlaygroundQuickLook { - return .range(Int64(location), Int64(length)) - } -} - extension NSRange : Codable { public init(from decoder: Decoder) throws { var container = try decoder.unkeyedContainer() diff --git a/Foundation/URL.swift b/Foundation/URL.swift index 1d797d5143..8ff899ed07 100644 --- a/Foundation/URL.swift +++ b/Foundation/URL.swift @@ -989,12 +989,6 @@ extension URL : CustomStringConvertible, CustomDebugStringConvertible { } } -extension URL : CustomPlaygroundQuickLookable { - public var customPlaygroundQuickLook: PlaygroundQuickLook { - return .url(absoluteString) - } -} - extension URL : Codable { private enum CodingKeys : Int, CodingKey { case base