Bug 1368147 - Pre: remove unused code r=sebastian

MozReview-Commit-ID: IeEHvmObCvE

--HG--
extra : rebase_source : 962f11d06de1b9f1cd15ff9c5a368abd8e7d6258
This commit is contained in:
Grigory Kruglov 2017-08-30 20:38:01 -04:00
parent a87a4ee418
commit 6ffd1e0bc5
2 changed files with 0 additions and 26 deletions

View File

@ -244,26 +244,6 @@ public class AndroidFxAccount {
return o.getString(key); 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) { private void updateBundleValues(String key, String value, String... more) {
if (more.length % 2 != 0) { if (more.length % 2 != 0) {
throw new IllegalArgumentException("more must be a list of key, value pairs"); throw new IllegalArgumentException("more must be a list of key, value pairs");

View File

@ -244,12 +244,6 @@ public class Utils {
return sha1Base32(account.toLowerCase(Locale.US)); 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. * Get shared preferences path for a Sync account.
* *