Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Foundation/Date.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 0 additions & 6 deletions Foundation/NSRange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 0 additions & 6 deletions Foundation/URL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down