Skip to content

Commit 0df4d39

Browse files
Remove unneeded check on iOS9 availability (devicekit#254)
Now that DeviceKit dropped support of iOS8, this check is always true.
1 parent 969bd6b commit 0df4d39

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Source/Device.generated.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,11 +1263,7 @@ extension Device {
12631263

12641264
/// The user enabled Low Power mode
12651265
public var lowPowerMode: Bool {
1266-
if #available(iOS 9.0, *) {
1267-
return ProcessInfo.processInfo.isLowPowerModeEnabled
1268-
} else {
1269-
return false
1270-
}
1266+
return ProcessInfo.processInfo.isLowPowerModeEnabled
12711267
}
12721268

12731269
/// Provides a textual representation of the battery state.

Source/Device.swift.gyb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -883,11 +883,7 @@ extension Device {
883883

884884
/// The user enabled Low Power mode
885885
public var lowPowerMode: Bool {
886-
if #available(iOS 9.0, *) {
887-
return ProcessInfo.processInfo.isLowPowerModeEnabled
888-
} else {
889-
return false
890-
}
886+
return ProcessInfo.processInfo.isLowPowerModeEnabled
891887
}
892888

893889
/// Provides a textual representation of the battery state.

0 commit comments

Comments
 (0)