Remove dangling CallsManager code.
Change-Id: I964e817cb1be2769c7206138250c16df7ecd357e
diff --git a/src/com/android/telecomm/CallActivity.java b/src/com/android/telecomm/CallActivity.java
index 3fbe756..350bf56 100644
--- a/src/com/android/telecomm/CallActivity.java
+++ b/src/com/android/telecomm/CallActivity.java
@@ -113,11 +113,7 @@
String handle = intent.getDataString();
ContactInfo contactInfo = null;
try {
- // we use the application context because the lifetime of the call services bound on
- // this context extends beyond the life of this activity.
- Context context = getApplicationContext();
-
- mCallsManager.processOutgoingCallIntent(handle, contactInfo, context);
+ mCallsManager.processOutgoingCallIntent(handle, contactInfo);
} catch (RestrictedCallException e) {
// TODO(gilad): Handle or explicitly state to be ignored.
}
diff --git a/src/com/android/telecomm/CallsManager.java b/src/com/android/telecomm/CallsManager.java
index aebee13..8903a96 100644
--- a/src/com/android/telecomm/CallsManager.java
+++ b/src/com/android/telecomm/CallsManager.java
@@ -16,7 +16,6 @@
package com.android.telecomm;
-import android.content.Context;
import android.telecomm.CallServiceDescriptor;
import android.telecomm.CallState;
import android.util.Log;
@@ -110,9 +109,8 @@
*
* @param handle The handle to dial.
* @param contactInfo Information about the entity being called.
- * @param context The application context.
*/
- void processOutgoingCallIntent(String handle, ContactInfo contactInfo, Context context)
+ void processOutgoingCallIntent(String handle, ContactInfo contactInfo)
throws RestrictedCallException {
for (OutgoingCallValidator validator : mOutgoingCallValidators) {