Replace CallServiceSelectors with Subscriptions (2/3)
Remove CallServiceSelectors and replace them with comprehensive
support for Subscriptions as the means of selecting ways of making
phone calls. After this change, a ConnectionService is not a
semantically meaningful "way of making a call" -- it's more like the
mechanism whereby the Android system communicates with a 3rd party
process to ask for phone services. We anticipate each process having
only one ConnectionService.
Change-Id: I11258709b014d2fd3eed98a521227c200027018f
diff --git a/src/com/android/telecomm/Switchboard.java b/src/com/android/telecomm/Switchboard.java
index 834bf44..7c6d44d 100644
--- a/src/com/android/telecomm/Switchboard.java
+++ b/src/com/android/telecomm/Switchboard.java
@@ -34,8 +34,7 @@
import java.util.Set;
/**
- * Switchboard is responsible for:
- * - gathering the {@link CallServiceWrapper}s and {@link CallServiceSelectorWrapper}s through
+ * Switchboard is responsible for gathering the {@link CallServiceWrapper}s through
* which to place outgoing calls
*/
final class Switchboard {
@@ -46,8 +45,6 @@
private final CallServiceRepository mCallServiceRepository;
- private final CallServiceSelectorRepository mSelectorRepository;
-
/** Singleton accessor. */
static Switchboard getInstance() {
return sInstance;
@@ -60,7 +57,6 @@
ThreadUtil.checkOnMainThread();
mIncomingCallsManager = new IncomingCallsManager();
- mSelectorRepository = new CallServiceSelectorRepository();
mCallServiceRepository =
new CallServiceRepository(mIncomingCallsManager);
}
@@ -69,10 +65,6 @@
return mCallServiceRepository;
}
- CallServiceSelectorRepository getSelectorRepository() {
- return mSelectorRepository;
- }
-
/**
* Retrieves details about the incoming call through the incoming call manager.
*