summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-07-12 19:20:49 +0200
committercyBerta <cyberta@riseup.net>2019-07-12 19:20:49 +0200
commit50667074dd6729eb47400273f4275ceba2457575 (patch)
tree3e6730b27eff129a54f6104c2dd2f487ffea2887 /app/src
parentf6200adfb2ea0cf27547263c2045887f3a208d26 (diff)
remove unused methods in PreferenceHelper
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java b/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
index a52ee790..f5cf590b 100644
--- a/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
+++ b/app/src/main/java/se/leap/bitmaskclient/utils/PreferenceHelper.java
@@ -17,13 +17,11 @@ import java.util.Locale;
import java.util.Map;
import de.blinkt.openvpn.VpnProfile;
-import de.blinkt.openvpn.core.Preferences;
import se.leap.bitmaskclient.Provider;
import static android.content.Context.MODE_PRIVATE;
import static se.leap.bitmaskclient.Constants.ALWAYS_ON_SHOW_DIALOG;
import static se.leap.bitmaskclient.Constants.DEFAULT_SHARED_PREFS_BATTERY_SAVER;
-import static se.leap.bitmaskclient.Constants.EIP_IS_ALWAYS_ON;
import static se.leap.bitmaskclient.Constants.LAST_USED_PROFILE;
import static se.leap.bitmaskclient.Constants.PREFERENCES_APP_VERSION;
import static se.leap.bitmaskclient.Constants.PROVIDER_CONFIGURED;
@@ -258,20 +256,6 @@ public class PreferenceHelper {
return result;
}
- public static void setAlwaysOn(Context context, boolean alwaysOn) {
- if (context == null) {
- return;
- }
- SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
- //needs to be blocking here
- preferences.edit().putBoolean(EIP_IS_ALWAYS_ON, false).commit();
- }
-
- public static boolean isAlwaysOn(Context context) {
- SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
- return preferences.getBoolean(EIP_IS_ALWAYS_ON, false);
- }
-
public static String getString(Context context, String key, String defValue) {
SharedPreferences preferences = context.getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
return preferences.getString(key, defValue);