1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Remove legacy KEY_OC_VERSION constant

This commit is contained in:
Abel García de Prada 2022-10-04 08:10:54 +02:00 committed by Juan Carlos Garrote
parent 8fb6c1f4d5
commit 3d8a18d223

View File

@ -94,26 +94,6 @@ public class AccountUtils {
return username; return username;
} }
/**
* Get the stored server version corresponding to an OC account.
*
* @param account An OC account
* @param context Application context
* @return Version of the OC server, according to last check
*/
public static OwnCloudVersion getServerVersionForAccount(Account account, Context context) {
AccountManager ama = AccountManager.get(context);
OwnCloudVersion version = null;
try {
String versionString = ama.getUserData(account, Constants.KEY_OC_VERSION);
version = new OwnCloudVersion(versionString);
} catch (Exception e) {
Timber.e(e, "Couldn't get a the server version for an account");
}
return version;
}
/** /**
* @return * @return
* @throws IOException * @throws IOException
@ -209,11 +189,6 @@ public class AccountUtils {
} }
public static class Constants { public static class Constants {
/**
* Version should be 3 numbers separated by dot so it can be parsed by
* {@link OwnCloudVersion}
*/
public static final String KEY_OC_VERSION = "oc_version";
/** /**
* Base url should point to owncloud installation without trailing / ie: * Base url should point to owncloud installation without trailing / ie:
* http://server/path or https://owncloud.server * http://server/path or https://owncloud.server