fix: remove remaining unused variables to eliminate compiler warnings

- Remove unused senderNoiseKey in ChatViewModel
- Remove unused lastSuccess variable in BluetoothMeshService
- Eliminates all compiler warnings related to unused values
This commit is contained in:
jack
2025-08-12 09:43:06 +02:00
parent 99c0f6523e
commit a36eda3fbe
2 changed files with 1 additions and 3 deletions
@@ -5275,7 +5275,6 @@ extension BluetoothMeshService: CBCentralManagerDelegate {
// Time tracking removed - now in PeerSession
// Time tracking removed - now in PeerSession
// Keep lastSuccessfulMessageTime to validate session on reconnect
let lastSuccess = self.peerSessions[peerID]?.lastSuccessfulMessageTime ?? Date.distantPast
// Keeping Noise session on disconnect
}
+1 -2
View File
@@ -1011,8 +1011,7 @@ class ChatViewModel: ObservableObject, BitchatDelegate {
}
@objc private func handleDeliveryAcknowledgment(_ notification: Notification) {
guard let messageId = notification.userInfo?["messageId"] as? String,
let senderNoiseKey = notification.userInfo?["senderNoiseKey"] as? Data else { return }
guard let messageId = notification.userInfo?["messageId"] as? String else { return }