From 1703a34007aaaa109c85ce85f81c74d680891456 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 7 May 2025 15:23:39 +0200 Subject: [PATCH] remove unused code Signed-off-by: Marcel Hibbe --- .../nextcloud/talk/activities/CallActivity.kt | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt index 61b56fcfc..00c6c2c7b 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt @@ -2544,35 +2544,12 @@ class CallActivity : CallBaseActivity() { runOnUiThread { removeParticipantDisplayItem(sessionId, "video") } } - // private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) { - // Log.d(TAG, "removeParticipantDisplayItem") - // val participantDisplayItem = participantDisplayItems!!.remove("$sessionId-$videoStreamType") ?: return - // participantDisplayItem.destroy() - // if (!isDestroyed) { - // initGridAdapter() - // } - // } - - // private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) { - // val key = "$sessionId-$videoStreamType" - // - // val participant = participantItems.find { it.sessionKey == key } - // participant?.destroy() - // participantItems.remove(participant) - // - // initGrid() - // } - private fun removeParticipantDisplayItem(sessionId: String?, videoStreamType: String) { val key = "$sessionId-$videoStreamType" - val participant = participantItems.find { it.sessionKey == key } participant?.destroy() participantItems.removeAll { it.sessionKey == key } - - // Also remove UI state participantUiStates.removeAll { it.sessionKey == key } - initGrid() }