From 50667074dd6729eb47400273f4275ceba2457575 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 12 Jul 2019 19:20:49 +0200 Subject: remove unused methods in PreferenceHelper --- .../se/leap/bitmaskclient/utils/PreferenceHelper.java | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'app/src/main/java') 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); -- cgit v1.2.3