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

Commit 4a39e598 authored by Taesu Lee's avatar Taesu Lee
Browse files

Remove unused handleNotInService()



Test: build

Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>
Change-Id: If6a07b08763c9888bb974ad10a2216f80d41b2d9
parent f18b8abc
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -860,29 +860,6 @@ public abstract class SMSDispatcher extends Handler {
        }
    }

    /**
     * Handles outbound message when the phone is not in service.
     *
     * @param ss     Current service state.  Valid values are:
     *                  OUT_OF_SERVICE
     *                  EMERGENCY_ONLY
     *                  POWER_OFF
     * @param sentIntent the PendingIntent to send the error to
     */
    protected static void handleNotInService(int ss, PendingIntent sentIntent) {
        if (sentIntent != null) {
            try {
                if (ss == ServiceState.STATE_POWER_OFF) {
                    sentIntent.send(RESULT_ERROR_RADIO_OFF);
                } else {
                    sentIntent.send(RESULT_ERROR_NO_SERVICE);
                }
            } catch (CanceledException ex) {
                Rlog.e(TAG, "Failed to send result");
            }
        }
    }

    /**
     * @param ss service state
     * @return The result error based on input service state for not in service error