From 202268ae5562b449586d37f6ebd02e7691b18707 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 20 Jul 2023 15:36:23 +0200 Subject: [PATCH] Fix warning (remove dead code) --- .../libraries/push/impl/PushersManager.kt | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/PushersManager.kt b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/PushersManager.kt index 81a86c5345..f3afb940cd 100644 --- a/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/PushersManager.kt +++ b/libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/PushersManager.kt @@ -103,33 +103,6 @@ class PushersManager @Inject constructor( return "{\"cs\":\"$secretForUser\"}" } - suspend fun registerEmailForPush(email: String) { - TODO() - /* - val currentSession = activeSessionHolder.getActiveSession() - val appName = appNameProvider.getAppName() - currentSession.pushersService().addEmailPusher( - email = email, - lang = localeProvider.current().language, - emailBranding = appName, - appDisplayName = appName, - deviceDisplayName = currentSession.sessionParams.deviceId ?: "MOBILE" - ) - */ - } - - fun getPusherForCurrentSession() {}/*: Pusher? { - val session = activeSessionHolder.getSafeActiveSession() ?: return null - val deviceId = session.sessionParams.deviceId - return session.pushersService().getPushers().firstOrNull { it.deviceId == deviceId } - } - */ - - suspend fun unregisterEmailPusher(email: String) { - // val currentSession = activeSessionHolder.getSafeActiveSession() ?: return - // currentSession.pushersService().removeEmailPusher(email) - } - override suspend fun unregisterPusher(matrixClient: MatrixClient, pushKey: String, gateway: String) { matrixClient.pushersService().unsetHttpPusher() }