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

Commit a022e434 authored by Jordan Liu's avatar Jordan Liu
Browse files

Remove dead code

nNewCardCount and nNewSimStatus are unused so we can remove the code
which only modifies them.

Fixes: 67782784
Test: no change to behavior
Change-Id: I145536b6d7e46721b8d069eaa9dee48ab401a521
parent 71b259e1
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -633,8 +633,6 @@ public class SubscriptionInfoUpdater extends Handler {
        }

        //check if the inserted SIM is new SIM
        int nNewCardCount = 0;
        int nNewSimStatus = 0;
        for (int i = 0; i < PROJECT_SIM_NUM; i++) {
            if (mInsertSimState[i] == SIM_NOT_INSERT) {
                logd("updateSubscriptionInfoByIccId: No SIM inserted in slot " + i + " this time");
@@ -649,22 +647,6 @@ public class SubscriptionInfoUpdater extends Handler {
                    mSubscriptionManager.addSubscriptionInfoRecord(mIccId[i], i);
                }
                if (isNewSim(mIccId[i], decIccId[i], oldIccId)) {
                    nNewCardCount++;
                    switch (i) {
                        case PhoneConstants.SUB1:
                            nNewSimStatus |= STATUS_SIM1_INSERTED;
                            break;
                        case PhoneConstants.SUB2:
                            nNewSimStatus |= STATUS_SIM2_INSERTED;
                            break;
                        case PhoneConstants.SUB3:
                            nNewSimStatus |= STATUS_SIM3_INSERTED;
                            break;
                        //case PhoneConstants.SUB3:
                        //    nNewSimStatus |= STATUS_SIM4_INSERTED;
                        //    break;
                    }

                    mInsertSimState[i] = SIM_NEW;
                }
            }