Remove unused removeDeliveredInviteNotifications NotificationManager method

This commit is contained in:
Stefan Ceriu
2025-04-17 13:12:11 +03:00
committed by Stefan Ceriu
parent aaed6db0ea
commit c33a164354
3 changed files with 0 additions and 44 deletions
@@ -12026,41 +12026,6 @@ class NotificationManagerMock: NotificationManagerProtocol, @unchecked Sendable
}
await removeDeliveredMessageNotificationsForClosure?(roomID)
}
//MARK: - removeDeliveredInviteNotifications
var removeDeliveredInviteNotificationsUnderlyingCallsCount = 0
var removeDeliveredInviteNotificationsCallsCount: Int {
get {
if Thread.isMainThread {
return removeDeliveredInviteNotificationsUnderlyingCallsCount
} else {
var returnValue: Int? = nil
DispatchQueue.main.sync {
returnValue = removeDeliveredInviteNotificationsUnderlyingCallsCount
}
return returnValue!
}
}
set {
if Thread.isMainThread {
removeDeliveredInviteNotificationsUnderlyingCallsCount = newValue
} else {
DispatchQueue.main.sync {
removeDeliveredInviteNotificationsUnderlyingCallsCount = newValue
}
}
}
}
var removeDeliveredInviteNotificationsCalled: Bool {
return removeDeliveredInviteNotificationsCallsCount > 0
}
var removeDeliveredInviteNotificationsClosure: (() async -> Void)?
func removeDeliveredInviteNotifications() async {
removeDeliveredInviteNotificationsCallsCount += 1
await removeDeliveredInviteNotificationsClosure?()
}
}
class NotificationSettingsProxyMock: NotificationSettingsProxyProtocol, @unchecked Sendable {
var callbacks: PassthroughSubject<NotificationSettingsProxyCallback, Never> {