Explorar o código

Update OmniBLE/OmniKit submodules; remove outdated code

Deniz Cengiz hai 4 meses
pai
achega
56b771a048
Modificáronse 3 ficheiros con 2 adicións e 17 borrados
  1. 1 1
      OmniBLE
  2. 1 1
      OmniKit
  3. 0 15
      Trio/Sources/APS/DeviceDataManager.swift

+ 1 - 1
OmniBLE

@@ -1 +1 @@
-Subproject commit d8375ebf242e0d0e02ace7a03d9e1632557de38e
+Subproject commit 4ad75d62bdbfd7d6df4d2aac03e7396a3d0ef175

+ 1 - 1
OmniKit

@@ -1 +1 @@
-Subproject commit 1a73635568750289ac4d2f702b6bf191efbdda9f
+Subproject commit 89840fb27e5211cb2bbd5a78af1a03295a6c335e

+ 0 - 15
Trio/Sources/APS/DeviceDataManager.swift

@@ -681,21 +681,6 @@ extension BaseDeviceDataManager: AlertObserver {
         let alertIssueDate = alert.issuedDate
 
         processQueue.async {
-            // if not alert in OmniPod/BLE, the acknowledgeAlert didn't do callbacks- Hack to manage this case
-            if let omnipodBLE = self.pumpManager as? OmniBLEPumpManager {
-                if omnipodBLE.state.activeAlerts.isEmpty {
-                    // force to ack alert in the alertStorage
-                    self.alertHistoryStorage.acknowledgeAlert(alertIssueDate, nil)
-                }
-            }
-
-            if let omniPod = self.pumpManager as? OmnipodPumpManager {
-                if omniPod.state.activeAlerts.isEmpty {
-                    // force to ack alert in the alertStorage
-                    self.alertHistoryStorage.acknowledgeAlert(alertIssueDate, nil)
-                }
-            }
-
             self.pumpManager?.acknowledgeAlert(alertIdentifier: alert.alertIdentifier) { error in
                 if let error = error {
                     self.alertHistoryStorage.acknowledgeAlert(alertIssueDate, error.localizedDescription)