Index: webrtc/pc/peerconnection.cc |
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc |
index 3f01d69edffd6cee081e33a7d1613aca2f4af18d..c5d65918d9e0d6cd19418a917c3c7a65d1c19860 100644 |
--- a/webrtc/pc/peerconnection.cc |
+++ b/webrtc/pc/peerconnection.cc |
@@ -1363,9 +1363,6 @@ void PeerConnection::SetRemoteDescription( |
for (size_t i = 0; i < new_streams->count(); ++i) { |
MediaStreamInterface* new_stream = new_streams->at(i); |
stats_->AddStream(new_stream); |
- // Call both the raw pointer and scoped_refptr versions of the method |
- // for compatibility. |
- observer_->OnAddStream(new_stream); |
observer_->OnAddStream( |
rtc::scoped_refptr<MediaStreamInterface>(new_stream)); |
} |
@@ -2080,9 +2077,6 @@ void PeerConnection::UpdateEndedRemoteMediaStreams() { |
for (auto& stream : streams_to_remove) { |
remote_streams_->RemoveStream(stream); |
- // Call both the raw pointer and scoped_refptr versions of the method |
- // for compatibility. |
- observer_->OnRemoveStream(stream.get()); |
observer_->OnRemoveStream(std::move(stream)); |
} |
} |
@@ -2257,9 +2251,6 @@ void PeerConnection::CreateRemoteRtpDataChannel(const std::string& label, |
channel->SetReceiveSsrc(remote_ssrc); |
rtc::scoped_refptr<DataChannelInterface> proxy_channel = |
DataChannelProxy::Create(signaling_thread(), channel); |
- // Call both the raw pointer and scoped_refptr versions of the method |
- // for compatibility. |
- observer_->OnDataChannel(proxy_channel.get()); |
observer_->OnDataChannel(std::move(proxy_channel)); |
} |
@@ -2416,9 +2407,6 @@ void PeerConnection::OnDataChannelOpenMessage( |
rtc::scoped_refptr<DataChannelInterface> proxy_channel = |
DataChannelProxy::Create(signaling_thread(), channel); |
- // Call both the raw pointer and scoped_refptr versions of the method |
- // for compatibility. |
- observer_->OnDataChannel(proxy_channel.get()); |
observer_->OnDataChannel(std::move(proxy_channel)); |
} |