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

Commit 1ecb802

Browse files
committed
Remove legacy KEY_OC_VERSION constant
1 parent b7d3cc2 commit 1ecb802

File tree

1 file changed

+0
-25
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts

1 file changed

+0
-25
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts/AccountUtils.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,6 @@ public static String getUsernameForAccount(Account account) {
9494
return username;
9595
}
9696

97-
/**
98-
* Get the stored server version corresponding to an OC account.
99-
*
100-
* @param account An OC account
101-
* @param context Application context
102-
* @return Version of the OC server, according to last check
103-
*/
104-
public static OwnCloudVersion getServerVersionForAccount(Account account, Context context) {
105-
AccountManager ama = AccountManager.get(context);
106-
OwnCloudVersion version = null;
107-
try {
108-
String versionString = ama.getUserData(account, Constants.KEY_OC_VERSION);
109-
version = new OwnCloudVersion(versionString);
110-
111-
} catch (Exception e) {
112-
Timber.e(e, "Couldn't get a the server version for an account");
113-
}
114-
return version;
115-
}
116-
11797
/**
11898
* @return
11999
* @throws IOException
@@ -209,11 +189,6 @@ public Account getFailedAccount() {
209189
}
210190

211191
public static class Constants {
212-
/**
213-
* Version should be 3 numbers separated by dot so it can be parsed by
214-
* {@link OwnCloudVersion}
215-
*/
216-
public static final String KEY_OC_VERSION = "oc_version";
217192
/**
218193
* Base url should point to owncloud installation without trailing / ie:
219194
* http://server/path or https://owncloud.server

0 commit comments

Comments
 (0)