Revert "create getModemEnabled function in PhoneConfigurationManager"
This reverts commit ead6a26a00e7c31de29c1036cf011f91cad8a803.
Reason for revert: Broke presubmit
Change-Id: Ic5b889314c32559c2b049df01fbdc1b2c3eb1ad6
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index d06cd60..d319f2a 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1099,7 +1099,6 @@
request = (MainThreadRequest) msg.obj;
boolean enable = (boolean) request.argument;
onCompleted = obtainMessage(EVENT_ENABLE_MODEM_DONE, request);
- onCompleted.arg1 = enable ? 1 : 0;
PhoneConfigurationManager.getInstance()
.enablePhone(request.phone, enable, onCompleted);
break;
@@ -1107,9 +1106,6 @@
ar = (AsyncResult) msg.obj;
request = (MainThreadRequest) ar.userObj;
request.result = (ar.exception == null);
- //update the cache as modem status has changed
- mPhoneConfigurationManager.addToPhoneStatusCache(
- request.phone.getPhoneId(), msg.arg1 == 1);
updateModemStateMetrics();
notifyRequester(request);
break;