From 1194b9a412fad282967ae170961adf10266ed8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garci=CC=81a=20de=20Prada?= Date: Thu, 19 Nov 2020 19:05:48 +0100 Subject: [PATCH] Use the same ownCloudClient across the whole login process --- .../status/services/implementation/OCServerInfoService.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/services/implementation/OCServerInfoService.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/services/implementation/OCServerInfoService.kt index e1250d84..65b85479 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/services/implementation/OCServerInfoService.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/services/implementation/OCServerInfoService.kt @@ -43,10 +43,4 @@ class OCServerInfoService : ServerInfoService { client: OwnCloudClient ): RemoteOperationResult = GetRemoteStatusOperation().execute(client) - - private fun createClientFromPath(path: String): OwnCloudClient { - val client = OwnCloudClient(Uri.parse(path)).apply { credentials = getAnonymousCredentials() } - OwnCloudClientFactory.retriveCookisFromMiddleware(client) - return client - } }