Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit b7d3cc2

Browse files
committed
Remove legacy owncloud version from the client.
1 parent 2b27b96 commit b7d3cc2

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import com.owncloud.android.lib.common.http.HttpConstants;
3737
import com.owncloud.android.lib.common.http.methods.HttpBaseMethod;
3838
import com.owncloud.android.lib.common.utils.RandomUtils;
39-
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
4039
import okhttp3.Cookie;
4140
import okhttp3.HttpUrl;
4241
import timber.log.Timber;
@@ -59,7 +58,6 @@ public class OwnCloudClient extends HttpClient {
5958
private OwnCloudCredentials mCredentials = null;
6059
private int mInstanceNumber;
6160
private Uri mBaseUri;
62-
private OwnCloudVersion mVersion = null;
6361
private OwnCloudAccount mAccount;
6462
private final ConnectionValidator mConnectionValidator;
6563
private Object mRequestMutex = new Object();
@@ -185,7 +183,7 @@ public Uri getUserFilesWebDavUri() {
185183
return (mCredentials instanceof OwnCloudAnonymousCredentials || mAccount == null)
186184
? Uri.parse(mBaseUri + WEBDAV_FILES_PATH_4_0)
187185
: Uri.parse(mBaseUri + WEBDAV_FILES_PATH_4_0 + AccountUtils.getUserId(
188-
mAccount.getSavedAccount(), getContext()
186+
mAccount.getSavedAccount(), getContext()
189187
)
190188
);
191189
}
@@ -194,7 +192,7 @@ public Uri getUploadsWebDavUri() {
194192
return mCredentials instanceof OwnCloudAnonymousCredentials
195193
? Uri.parse(mBaseUri + WEBDAV_UPLOADS_PATH_4_0)
196194
: Uri.parse(mBaseUri + WEBDAV_UPLOADS_PATH_4_0 + AccountUtils.getUserId(
197-
mAccount.getSavedAccount(), getContext()
195+
mAccount.getSavedAccount(), getContext()
198196
)
199197
);
200198
}
@@ -241,14 +239,6 @@ public List<Cookie> getCookiesForBaseUri() {
241239
HttpUrl.parse(mBaseUri.toString()));
242240
}
243241

244-
public OwnCloudVersion getOwnCloudVersion() {
245-
return mVersion;
246-
}
247-
248-
public void setOwnCloudVersion(OwnCloudVersion version) {
249-
mVersion = version;
250-
}
251-
252242
public OwnCloudAccount getAccount() {
253243
return mAccount;
254244
}
@@ -260,4 +250,4 @@ public void setAccount(OwnCloudAccount account) {
260250
public void setFollowRedirects(boolean followRedirects) {
261251
this.mFollowRedirects = followRedirects;
262252
}
263-
}
253+
}

0 commit comments

Comments
 (0)