Browse Source

remove test code in HomeRootView

kskandis 1 year ago
parent
commit
1fe61491e1
1 changed files with 0 additions and 13 deletions
  1. 0 13
      Trio/Sources/Modules/Home/View/HomeRootView.swift

+ 0 - 13
Trio/Sources/Modules/Home/View/HomeRootView.swift

@@ -81,18 +81,6 @@ extension Home {
             }
             }
         }
         }
 
 
-        private func sendTestNotifications() { // TODO: REMOVE!!!
-            info(.apsManager, "Invalid Glucose (Not enough glucose data).")
-            info(.apsManager, "Invalid Algorithm Response (Determine basal failed).")
-            info(.apsManager, "Manual Temporary Basal Rate (Loop not possible during the manual basal temp). Looping suspended.")
-            info(.apsManager, "Pump Error (Communication Failure).")
-            info(.apsManager, "Pump Error (RileyLink reported unknown command).") // RileyLink
-            info(.apsManager, "Pump Error (Invalid response during PumpMessage(carelink ...)).") // PumpOpsError
-            info(.apsManager, "Pump Error (Command(PumpOpsError.device-error...RileyLinkBLEKit...)).") // PumpOpsError
-            info(.apsManager, "Invalid Pump State (Pump not set)")
-            info(.apsManager, "Command(PumpOpsError.device-error...RileyLinkBLEKit...).") // PumpOpsError
-        }
-
         @ViewBuilder func pumpTimezoneView(_ badgeImage: UIImage, _ badgeColor: Color) -> some View {
         @ViewBuilder func pumpTimezoneView(_ badgeImage: UIImage, _ badgeColor: Color) -> some View {
             HStack {
             HStack {
                 Image(uiImage: badgeImage.withRenderingMode(.alwaysTemplate))
                 Image(uiImage: badgeImage.withRenderingMode(.alwaysTemplate))
@@ -402,7 +390,6 @@ extension Home {
                 )
                 )
                 .onTapGesture {
                 .onTapGesture {
                     state.isLoopStatusPresented = true
                     state.isLoopStatusPresented = true
-                    sendTestNotifications() // TODO: remove!!
                 }
                 }
                 .onLongPressGesture {
                 .onLongPressGesture {
                     let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
                     let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)