Skip to content

Commit

Permalink
Remove URL conformance to DataConvertible due to deployment target is…
Browse files Browse the repository at this point in the history
…sues.
  • Loading branch information
agisboye committed Jan 24, 2018
1 parent 1c25c7b commit 8a3167d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SwiftLMDB has been tested on iOS and macOS, however it should also run on Linux.
## Requirements

- iOS 8.0+ or macOS 10.10+
- Swift 3.0
- Swift 3.0+


## Installation
Expand Down
14 changes: 0 additions & 14 deletions Sources/DataConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,3 @@ extension Date: DataConvertible {
return self.timeIntervalSinceReferenceDate.data
}
}

extension URL: DataConvertible {

public init?(data: Data) {
guard let url = URL(dataRepresentation: data, relativeTo: nil, isAbsolute: true) else {
return nil
}
self = url
}

public var data: Data {
return self.absoluteURL.dataRepresentation
}
}

0 comments on commit 8a3167d

Please sign in to comment.