diff --git a/library/src/main/java/com/nextcloud/common/NextcloudClient.kt b/library/src/main/java/com/nextcloud/common/NextcloudClient.kt index e92c6e0764..3cb6ddb443 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 @@ -54,7 +53,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 @@ -189,12 +188,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) - } }