From 0db401de4aeffeb7cf71688aae1c1e40b91e1955 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Tue, 19 Nov 2024 11:07:35 +0100 Subject: [PATCH] remove unused code Signed-off-by: sowjanyakch --- .../main/java/com/nextcloud/talk/api/NcApiCoroutines.kt | 8 -------- .../conversations/ConversationsRepositoryImpl.kt | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/api/NcApiCoroutines.kt b/app/src/main/java/com/nextcloud/talk/api/NcApiCoroutines.kt index a35b175078..f47978d99a 100644 --- a/app/src/main/java/com/nextcloud/talk/api/NcApiCoroutines.kt +++ b/app/src/main/java/com/nextcloud/talk/api/NcApiCoroutines.kt @@ -133,14 +133,6 @@ interface NcApiCoroutines { @Body body: RequestBody ): GenericOverall - @FormUrlEncoded - @PUT - suspend fun setPassword2( - @Header("Authorization") authorization: String, - @Url url: String, - @Field("password") password: String - ): GenericOverall - @DELETE suspend fun clearChatHistory(@Header("Authorization") authorization: String, @Url url: String): GenericOverall diff --git a/app/src/main/java/com/nextcloud/talk/repositories/conversations/ConversationsRepositoryImpl.kt b/app/src/main/java/com/nextcloud/talk/repositories/conversations/ConversationsRepositoryImpl.kt index 173269719c..2d7fa0609e 100644 --- a/app/src/main/java/com/nextcloud/talk/repositories/conversations/ConversationsRepositoryImpl.kt +++ b/app/src/main/java/com/nextcloud/talk/repositories/conversations/ConversationsRepositoryImpl.kt @@ -93,7 +93,7 @@ class ConversationsRepositoryImpl( return result } - override suspend fun clearChatHistory(apiVersion:Int,roomToken:String): GenericOverall { + override suspend fun clearChatHistory(apiVersion: Int, roomToken: String): GenericOverall { return coroutineApi.clearChatHistory( credentials, ApiUtils.getUrlForChat(apiVersion, user.baseUrl!!, roomToken)