1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Revert "Add a constructor to JSON which takes a CustomJSONConvertible."

This reverts commit 9e0d4208bed25824275ccc34092b8659fa316a2b.
This commit is contained in:
Rob Rix 2015-10-28 14:37:12 -04:00
parent cdf4848357
commit 0371c51340

View File

@ -10,11 +10,6 @@ public enum JSON: ArrayLiteralConvertible, BooleanLiteralConvertible, Dictionary
case Null
public init<T: CustomJSONConvertible>(_ convertible: T) {
self = convertible.JSON
}
public var number: Double? {
if case let .Number(d) = self { return d }
return nil