From d56c428386238fcb305571faf693e0e8f0dd7834 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 5 May 2022 15:14:49 +0200 Subject: [PATCH] wip Signed-off-by: tobiasKaminsky --- .../main/java/com/nextcloud/common/NextcloudClient.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/library/src/main/java/com/nextcloud/common/NextcloudClient.kt b/library/src/main/java/com/nextcloud/common/NextcloudClient.kt index 6c0fdfde8..bbf245c40 100644 --- a/library/src/main/java/com/nextcloud/common/NextcloudClient.kt +++ b/library/src/main/java/com/nextcloud/common/NextcloudClient.kt @@ -38,7 +38,6 @@ import com.owncloud.android.lib.common.accounts.AccountUtils import com.owncloud.android.lib.common.network.AdvancedX509TrustManager import com.owncloud.android.lib.common.network.NetworkUtils import com.owncloud.android.lib.common.network.RedirectionPath -import com.owncloud.android.lib.common.network.WebdavUtils import com.owncloud.android.lib.common.operations.RemoteOperation import com.owncloud.android.lib.common.operations.RemoteOperationResult import com.owncloud.android.lib.common.utils.Log_OC @@ -55,7 +54,7 @@ import javax.net.ssl.TrustManager class NextcloudClient private constructor( val delegate: NextcloudUriDelegate, var credentials: String, - val client: OkHttpClient, + var client: OkHttpClient, ) : NextcloudUriProvider by delegate { var followRedirects = true @@ -193,12 +192,4 @@ class NextcloudClient private constructor( fun getUserIdPlain(): String { return delegate.userId!! } - - fun getFilesDavUri(path: String): String { - return getDavUri().toString() + "/files/" + userId + "/" + WebdavUtils.encodePath(path) - } - - fun getDavUri(): Uri { - return Uri.parse(baseUri.toString() + AccountUtils.WEBDAV_PATH_9_0) - } }