Remove dead method NeedsIceRestart_n from JsepTransportController This method is declared in the header and implemented in the .cc file but has no callers either internally or externally. Bug: none Change-Id: I8d9d0e99e2bac46c46f44916862943c404ace897 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/469280 Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47595}
diff --git a/pc/jsep_transport_controller.cc b/pc/jsep_transport_controller.cc index fda4db0..de012e2 100644 --- a/pc/jsep_transport_controller.cc +++ b/pc/jsep_transport_controller.cc
@@ -283,13 +283,6 @@ return false; } -bool JsepTransportController::NeedsIceRestart_n( - absl::string_view transport_name) const { - RTC_DCHECK_RUN_ON(network_thread_); - const JsepTransport* transport = GetJsepTransportByName(transport_name); - return transport ? transport->needs_ice_restart() : false; -} - std::optional<SSLRole> JsepTransportController::GetDtlsRole( absl::string_view mid) const { if (signaling_thread_->IsCurrent()) {
diff --git a/pc/jsep_transport_controller.h b/pc/jsep_transport_controller.h index 709b392..61aecd7 100644 --- a/pc/jsep_transport_controller.h +++ b/pc/jsep_transport_controller.h
@@ -289,10 +289,6 @@ RTC_RUN_ON(network_thread_); // Always called via a blocking call from the signaling thread. - bool NeedsIceRestart_n(absl::string_view mid) const - RTC_RUN_ON(network_thread_); - - // Always called via a blocking call from the signaling thread. bool RemoveRemoteCandidate_n(const IceCandidate* candidate) RTC_RUN_ON(network_thread_);