Просмотр исходного кода

Pruning dead (commented) code

- Removed one line of code that was commented out an inactive
- Removed one blank comment ("//" followed by nothing)
- Lastly, very important shout out to @avouspierre who created the base for this shortcut which I then modified/adapted

Co-Authored-By: Pierre L <pn.lagarde@gmail.com>
Auggie Fisher 1 год назад
Родитель
Сommit
1711a404dd

+ 0 - 3
FreeAPS/Sources/Modules/ShortcutsConfig/ShortcutsConfigStateModel.swift

@@ -12,8 +12,6 @@ extension ShortcutsConfig {
         @Published var maxBolusByShortcuts: BolusShortcutLimit = .notAllowed
 
         override func subscribe() {
-            // allowBolusByShortcuts = (maxBolusByShortcuts != .notAllowed)
-
             subscribeSetting(\.bolusShortcut, on: $maxBolusByShortcuts) {
                 maxBolusByShortcuts = ($0 == .notAllowed) ? .limitBolusMax : $0
                 allowBolusByShortcuts = ($0 != .notAllowed)
@@ -25,7 +23,6 @@ extension ShortcutsConfig {
                         // the bolus is not allowed
                         self?.settingsManager.settings.bolusShortcut = .notAllowed
                     } else {
-                        //
                         if let bs = self?.maxBolusByShortcuts {
                             self?.settingsManager.settings.bolusShortcut = bs
                         } else {