Skip to content

Commit 0ce27cd

Browse files
committed
[LOOP-4483] Study Product Selection
1 parent 2180cf6 commit 0ce27cd

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Loop/Managers/LoopAppManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Intents
1111
import Combine
1212
import LoopKit
1313
import LoopKitUI
14+
import TidepoolKit
1415
import MockKit
1516
import HealthKit
1617
import WidgetKit

LoopCore/NSUserDefaults.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extension UserDefaults {
2020
case lastProfileExpirationAlertDate = "com.loopkit.Loop.lastProfileExpirationAlertDate"
2121
case allowDebugFeatures = "com.loopkit.Loop.allowDebugFeatures"
2222
case allowSimulators = "com.loopkit.Loop.allowSimulators"
23-
case studyProductSelection = "com.loopkit.Loop.studyProductSelection"
2423
case resetLoop = "com.loopkit.Loop.resetLoop"
2524
}
2625

@@ -129,15 +128,6 @@ extension UserDefaults {
129128
return bool(forKey: Key.allowSimulators.rawValue)
130129
}
131130

132-
public var studyProductSelection: String? {
133-
get {
134-
string(forKey: Key.studyProductSelection.rawValue)
135-
}
136-
set {
137-
set(newValue, forKey: Key.studyProductSelection.rawValue)
138-
}
139-
}
140-
141131
public var resetLoop: Bool {
142132
get {
143133
bool(forKey: Key.resetLoop.rawValue)

StatusWidget/BasalView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ struct BasalView: View {
2626
.foregroundColor((isOld ? Color(UIColor.systemGray3) : Color("insulin")).opacity(0.5))
2727
.frame(width: 44, height: 22)
2828

29-
if let rate = rate,
30-
let rateString = decimalFormatter.string(from: NSNumber(value: rate)) {
29+
if let rateString = decimalFormatter.string(from: NSNumber(value: rate)) {
3130
Text("\(rateString) U")
3231
.font(.footnote)
3332
.foregroundColor(Color(isOld ? UIColor.systemGray3 : UIColor.secondaryLabel))

0 commit comments

Comments
 (0)