Skip to content

Commit b8b33f2

Browse files
committed
Fix deprecation warnings
1 parent ac5379d commit b8b33f2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/CLGeocoder+Promise.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extension CLGeocoder {
3333
}
3434

3535
/// Submits a forward-geocoding request using the specified address string.
36-
@available(iOS, deprecated: 11.0)
3736
public func geocode(_ addressString: String) -> Promise<[CLPlacemark]> {
3837
return Promise { seal in
3938
geocodeAddressString(addressString, completionHandler: seal.resolve)

Sources/CLLocationManager+Promise.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ extension CLLocationManager {
105105
}
106106
}
107107

108-
@available(iOS 8, *)
109108
private class AuthorizationCatcher: CLLocationManager, CLLocationManagerDelegate {
110109
let (promise, fulfill) = Guarantee<CLAuthorizationStatus>.pending()
111110
var retainCycle: AuthorizationCatcher?
@@ -115,7 +114,7 @@ private class AuthorizationCatcher: CLLocationManager, CLLocationManagerDelegate
115114
super.init()
116115
switch (initialAuthorizationState, type) {
117116
case (.authorizedWhenInUse, .always), (.authorizedWhenInUse, .automatic):
118-
if #available(iOS 11.0, tvOS 100.0, watchOS 100.0, macOS 100.0, *) {
117+
if #available(iOS 11.0, *) {
119118
fallthrough
120119
}
121120
case (.notDetermined, _):

0 commit comments

Comments
 (0)