Index: talk/session/media/mediasession.cc |
diff --git a/talk/session/media/mediasession.cc b/talk/session/media/mediasession.cc |
index 8d07e95a150d8a53e0190fd4f909d8b188b85137..80cc2d7ad72bf1cf5e25b80c2ca2d65355f2bb47 100644 |
--- a/talk/session/media/mediasession.cc |
+++ b/talk/session/media/mediasession.cc |
@@ -1886,71 +1886,4 @@ const DataContentDescription* GetFirstDataContentDescription( |
GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
} |
-bool GetMediaChannelNameFromComponent( |
- int component, MediaType media_type, std::string* channel_name) { |
- if (media_type == MEDIA_TYPE_AUDIO) { |
- if (component == ICE_CANDIDATE_COMPONENT_RTP) { |
- *channel_name = GICE_CHANNEL_NAME_RTP; |
- return true; |
- } else if (component == ICE_CANDIDATE_COMPONENT_RTCP) { |
- *channel_name = GICE_CHANNEL_NAME_RTCP; |
- return true; |
- } |
- } else if (media_type == MEDIA_TYPE_VIDEO) { |
- if (component == ICE_CANDIDATE_COMPONENT_RTP) { |
- *channel_name = GICE_CHANNEL_NAME_VIDEO_RTP; |
- return true; |
- } else if (component == ICE_CANDIDATE_COMPONENT_RTCP) { |
- *channel_name = GICE_CHANNEL_NAME_VIDEO_RTCP; |
- return true; |
- } |
- } else if (media_type == MEDIA_TYPE_DATA) { |
- if (component == ICE_CANDIDATE_COMPONENT_RTP) { |
- *channel_name = GICE_CHANNEL_NAME_DATA_RTP; |
- return true; |
- } else if (component == ICE_CANDIDATE_COMPONENT_RTCP) { |
- *channel_name = GICE_CHANNEL_NAME_DATA_RTCP; |
- return true; |
- } |
- } |
- |
- return false; |
-} |
- |
-bool GetMediaComponentFromChannelName( |
- const std::string& channel_name, int* component) { |
- if (channel_name == GICE_CHANNEL_NAME_RTP || |
- channel_name == GICE_CHANNEL_NAME_VIDEO_RTP || |
- channel_name == GICE_CHANNEL_NAME_DATA_RTP) { |
- *component = ICE_CANDIDATE_COMPONENT_RTP; |
- return true; |
- } else if (channel_name == GICE_CHANNEL_NAME_RTCP || |
- channel_name == GICE_CHANNEL_NAME_VIDEO_RTCP || |
- channel_name == GICE_CHANNEL_NAME_DATA_RTP) { |
- *component = ICE_CANDIDATE_COMPONENT_RTCP; |
- return true; |
- } |
- |
- return false; |
-} |
- |
-bool GetMediaTypeFromChannelName( |
- const std::string& channel_name, MediaType* media_type) { |
- if (channel_name == GICE_CHANNEL_NAME_RTP || |
- channel_name == GICE_CHANNEL_NAME_RTCP) { |
- *media_type = MEDIA_TYPE_AUDIO; |
- return true; |
- } else if (channel_name == GICE_CHANNEL_NAME_VIDEO_RTP || |
- channel_name == GICE_CHANNEL_NAME_VIDEO_RTCP) { |
- *media_type = MEDIA_TYPE_VIDEO; |
- return true; |
- } else if (channel_name == GICE_CHANNEL_NAME_DATA_RTP || |
- channel_name == GICE_CHANNEL_NAME_DATA_RTCP) { |
- *media_type = MEDIA_TYPE_DATA; |
- return true; |
- } |
- |
- return false; |
-} |
- |
} // namespace cricket |