Removed unused DeRegisterNetworkObserver.
DeRegisterNetworkObserver is not used, since RtpTransportControllerSend owns the thread on which SendSideCongestionController runs it would not be safe to allow it to be called from outside. Deregistration should be done by destroying RtpTransportControllerSend. In the future, the RegisterObserver functions should be removed as well, in favor of providing the observer in the constructor. This requires breaking a circular dependency between RtpTransportControllerSend and Call. Bug: webrtc:8415 Change-Id: Ifeb4c5d4a41e4d8419994b3146980bdaaf9cd6a9 Reviewed-on: https://webrtc-review.googlesource.com/58098 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22249}
This commit is contained in:

committed by
Commit Bot

parent
98900740ad
commit
0f9d9a9a12
@ -62,7 +62,7 @@ class SendSideCongestionController
|
||||
// try to break this circular chain of references, and make the observer a
|
||||
// construction time constant.
|
||||
void RegisterNetworkObserver(Observer* observer) override;
|
||||
void DeRegisterNetworkObserver(Observer* observer) override;
|
||||
virtual void DeRegisterNetworkObserver(Observer* observer);
|
||||
|
||||
void SetBweBitrates(int min_bitrate_bps,
|
||||
int start_bitrate_bps,
|
||||
|
Reference in New Issue
Block a user