diff --git a/pc/peer_connection.cc b/pc/peer_connection.cc index 26b70c63db..ad0a148f06 100644 --- a/pc/peer_connection.cc +++ b/pc/peer_connection.cc @@ -1031,18 +1031,6 @@ PeerConnection::AddTransceiver( return AddTransceiver(track, RtpTransceiverInit()); } -RtpTransportInternal* PeerConnection::GetRtpTransport(const std::string& mid) { - // TODO(bugs.webrtc.org/9987): Avoid the thread jump. - // This might be done by caching the value on the signaling thread. - RTC_DCHECK_RUN_ON(signaling_thread()); - return network_thread()->BlockingCall([this, &mid] { - RTC_DCHECK_RUN_ON(network_thread()); - auto rtp_transport = transport_controller_->GetRtpTransport(mid); - RTC_DCHECK(rtp_transport); - return rtp_transport; - }); -} - RTCErrorOr> PeerConnection::AddTransceiver( rtc::scoped_refptr track, diff --git a/pc/peer_connection.h b/pc/peer_connection.h index e6037a2698..406bc1cef2 100644 --- a/pc/peer_connection.h +++ b/pc/peer_connection.h @@ -417,9 +417,6 @@ class PeerConnection : public PeerConnectionInternal, const RtpTransceiverInit& init, bool fire_callback = true) override; - // Returns rtp transport, result can not be nullptr. - RtpTransportInternal* GetRtpTransport(const std::string& mid); - // Returns true if SRTP (either using DTLS-SRTP or SDES) is required by // this session. bool SrtpRequired() const override;