summaryrefslogtreecommitdiff
path: root/telephony/java
diff options
context:
space:
mode:
authorJames.cf Lin <jamescflin@google.com>2021-05-04 23:40:18 +0800
committerJames.cf Lin <jamescflin@google.com>2021-05-04 23:40:18 +0800
commit1cad8f9faf3a1dc06f8dc4107fce222a633e6511 (patch)
tree86870188560448aeb921bff4d95486876f96cf64 /telephony/java
parent83bc8699a11dd8c45cae14dbd8f9e04a998db299 (diff)
Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl
Bug: 184602965 Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest Change-Id: Iec5fffecb9a2b8e1fb9ec47608e8316ae844037a
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/ims/feature/RcsFeature.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/telephony/java/android/telephony/ims/feature/RcsFeature.java b/telephony/java/android/telephony/ims/feature/RcsFeature.java
index ddd6fbe38cf4..18cc37d7fbda 100644
--- a/telephony/java/android/telephony/ims/feature/RcsFeature.java
+++ b/telephony/java/android/telephony/ims/feature/RcsFeature.java
@@ -398,16 +398,6 @@ public class RcsFeature extends ImsFeature {
/**
* Remove the given CapabilityExchangeImplBase instance.
- * @param capExchangeImpl The {@link RcsCapabilityExchangeImplBase} instance to be removed.
- * @hide
- */
- public void removeCapabilityExchangeImpl(
- @NonNull RcsCapabilityExchangeImplBase capExchangeImpl) {
- // Override to implement the process of removing RcsCapabilityExchangeImplBase instance.
- }
-
- /**
- * Remove the given CapabilityExchangeImplBase instance.
* @param capExchangeImpl The {@link RcsCapabilityExchangeImplBase} instance to be destroyed.
*/
public void destroyCapabilityExchangeImpl(
@@ -450,7 +440,7 @@ public class RcsFeature extends ImsFeature {
// Remove the RcsCapabilityExchangeImplBase instance when the capability exchange
// instance has been removed in the framework.
if (mCapabilityExchangeImpl != null) {
- removeCapabilityExchangeImpl(mCapabilityExchangeImpl);
+ destroyCapabilityExchangeImpl(mCapabilityExchangeImpl);
}
mCapabilityExchangeImpl = null;
}
@@ -468,7 +458,7 @@ public class RcsFeature extends ImsFeature {
synchronized (mLock) {
// Remove the original instance
if (mCapabilityExchangeImpl != null) {
- removeCapabilityExchangeImpl(mCapabilityExchangeImpl);
+ destroyCapabilityExchangeImpl(mCapabilityExchangeImpl);
}
mCapabilityExchangeImpl = createCapabilityExchangeImpl(listener);
}