Remove connection substate
Jay Shrauner [Thu, 16 Apr 2015 20:02:05 +0000 (13:02 -0700)]
Bug:20300433
Change-Id: Ieb83fb0b71eaf948c19241ec59411b3d434fae33

src/java/com/android/ims/ImsCall.java
src/java/com/android/ims/internal/ImsCallSession.java

index 57afdb2..0a1f046 100644 (file)
@@ -688,26 +688,6 @@ public class ImsCall implements ICall {
     }
 
     /**
-     * Gets the call substate.
-     *
-     * @return int callsubstate
-     */
-    public int getCallSubstate() throws ImsException {
-        synchronized(mLockObj) {
-            if (mSession == null) {
-                throw new ImsException("No call session",
-                    ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED);
-            }
-            try {
-                return mSession.getCallSubstate();
-            } catch (Throwable t) {
-                loge("getCallSubstate :: ", t);
-                throw new ImsException("getCallSubstate()", t, 0);
-            }
-        }
-    }
-
-    /**
      * Gets the last reason information when the call is not established, cancelled or terminated.
      *
      * @return the last reason information
index 3e3d1df..d85cfb4 100644 (file)
@@ -503,23 +503,6 @@ public class ImsCallSession {
     }
 
     /**
-     * Gets the call substate for this session.
-     *
-     * @return the call substate for this session.
-     */
-    public int getCallSubstate() {
-        if (mClosed) {
-            return Connection.SUBSTATE_NONE;
-        }
-
-        try {
-            return miSession.getCallSubstate();
-        } catch (RemoteException e) {
-            return Connection.SUBSTATE_NONE;
-        }
-    }
-
-    /**
      * Gets the value associated with the specified property of this session.
      *
      * @return the string value associated with the specified property