This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/accounts Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -94,26 +94,6 @@ public static String getUsernameForAccount(Account account) {
94
94
return username ;
95
95
}
96
96
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
-
117
97
/**
118
98
* @return
119
99
* @throws IOException
@@ -209,11 +189,6 @@ public Account getFailedAccount() {
209
189
}
210
190
211
191
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" ;
217
192
/**
218
193
* Base url should point to owncloud installation without trailing / ie:
219
194
* http://server/path or https://owncloud.server
You can’t perform that action at this time.
0 commit comments