зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368147 - Pre: remove unused code r=sebastian
MozReview-Commit-ID: IeEHvmObCvE --HG-- extra : rebase_source : 962f11d06de1b9f1cd15ff9c5a368abd8e7d6258
This commit is contained in:
Родитель
a87a4ee418
Коммит
6ffd1e0bc5
|
@ -244,26 +244,6 @@ public class AndroidFxAccount {
|
|||
return o.getString(key);
|
||||
}
|
||||
|
||||
protected boolean getBundleDataBoolean(String key, boolean def) {
|
||||
ExtendedJSONObject o = unbundle();
|
||||
if (o == null) {
|
||||
return def;
|
||||
}
|
||||
Boolean b = o.getBoolean(key);
|
||||
if (b == null) {
|
||||
return def;
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
protected byte[] getBundleDataBytes(String key) {
|
||||
ExtendedJSONObject o = unbundle();
|
||||
if (o == null) {
|
||||
return null;
|
||||
}
|
||||
return o.getByteArrayHex(key);
|
||||
}
|
||||
|
||||
private void updateBundleValues(String key, String value, String... more) {
|
||||
if (more.length % 2 != 0) {
|
||||
throw new IllegalArgumentException("more must be a list of key, value pairs");
|
||||
|
|
|
@ -244,12 +244,6 @@ public class Utils {
|
|||
return sha1Base32(account.toLowerCase(Locale.US));
|
||||
}
|
||||
|
||||
public static SharedPreferences getSharedPreferences(final Context context, final String product, final String username, final String serverURL, final String profile, final long version)
|
||||
throws NoSuchAlgorithmException, UnsupportedEncodingException {
|
||||
String prefsPath = getPrefsPath(product, username, serverURL, profile, version);
|
||||
return context.getSharedPreferences(prefsPath, SHARED_PREFERENCES_MODE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get shared preferences path for a Sync account.
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче