diff --git a/src/org/lineageos/setupwizard/util/SetupWizardUtils.java b/src/org/lineageos/setupwizard/util/SetupWizardUtils.java index 72b5cca6..4f112812 100644 --- a/src/org/lineageos/setupwizard/util/SetupWizardUtils.java +++ b/src/org/lineageos/setupwizard/util/SetupWizardUtils.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2013 The CyanogenMod Project - * Copyright (C) 2017-2021 The LineageOS Project + * 2017-2022 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,15 +84,6 @@ public class SetupWizardUtils { return context.getSharedPreferences("SetupWizardPrefs", MODE_PRIVATE); } - public static boolean isMobileDataEnabled(Context context) { - try { - TelephonyManager tm = context.getSystemService(TelephonyManager.class); - return tm.getDataEnabled(); - } catch (Exception e) { - return false; - } - } - public static void setMobileDataEnabled(Context context, boolean enabled) { TelephonyManager tm = context.getSystemService(TelephonyManager.class); if (tm.isMultiSimEnabled()) {