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:
parent
cdf4848357
commit
0371c51340
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user