Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c963229 authored by Bruno Martins's avatar Bruno Martins
Browse files

SetupWizardUtils: Remove unused isMobileDataEnabled method

Last usage was before commit 334cd1bc.

Change-Id: Ic59a47a62bb439db5d7859ea136c3334ae5257fa
parent 70551985
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
/*
 * 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()) {