Revert "refactor radioPowerState"
This reverts commit 753ec8dfae3ab20ef871ee2698560890db5c247a.
Reason for revert: Broken master build
Change-Id: I1de997fbb3e2e54c693b6e9f2cf0acc67bc0d47c
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 37090ba..f2bc7d3 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -4934,31 +4934,6 @@
}
/**
- * Get the current modem radio state for the given slot.
- * @param slotIndex slot index.
- * @param callingPackage the name of the package making the call.
- * @return the current radio power state from the modem
- */
- @Override
- public int getRadioPowerState(int slotIndex, String callingPackage) {
- Phone phone = PhoneFactory.getPhone(slotIndex);
- if (phone != null) {
- if (!TelephonyPermissions.checkCallingOrSelfReadPhoneState(
- mApp, phone.getSubId(), callingPackage, "getRadioPowerState")) {
- return TelephonyManager.RADIO_POWER_UNAVAILABLE;
- }
-
- final long identity = Binder.clearCallingIdentity();
- try {
- return phone.getRadioPowerState();
- } finally {
- Binder.restoreCallingIdentity(identity);
- }
- }
- return TelephonyManager.RADIO_POWER_UNAVAILABLE;
- }
-
- /**
* Checks if data roaming is enabled on the subscription with id {@code subId}.
*
* <p>Requires one of the following permissions: