diff --git a/rtc_base/network.cc b/rtc_base/network.cc index 4be6eed759..b5530ab69a 100644 --- a/rtc_base/network.cc +++ b/rtc_base/network.cc @@ -32,11 +32,9 @@ #include "absl/strings/match.h" #include "absl/strings/string_view.h" #include "api/task_queue/pending_task_safety_flag.h" -#include "api/transport/field_trial_based_config.h" #include "api/units/time_delta.h" #include "rtc_base/checks.h" #include "rtc_base/logging.h" -#include "rtc_base/memory/always_valid_pointer.h" #include "rtc_base/network_monitor.h" #include "rtc_base/socket.h" // includes something that makes windows happy #include "rtc_base/string_encode.h" @@ -1205,12 +1203,6 @@ webrtc::MdnsResponderInterface* Network::GetMdnsResponder() const { return mdns_responder_provider_->GetMdnsResponder(); } -uint16_t Network::GetCost(const webrtc::FieldTrialsView* field_trials) const { - return GetCost( - *webrtc::AlwaysValidPointer(field_trials)); -} - uint16_t Network::GetCost(const webrtc::FieldTrialsView& field_trials) const { AdapterType type = IsVpn() ? underlying_type_for_vpn_ : type_; const bool use_differentiated_cellular_costs = diff --git a/rtc_base/network.h b/rtc_base/network.h index 4a97a45d4d..f75cf0d725 100644 --- a/rtc_base/network.h +++ b/rtc_base/network.h @@ -535,9 +535,6 @@ class RTC_EXPORT Network { // Twice per Network in BasicPortAllocator if // PORTALLOCATOR_DISABLE_COSTLY_NETWORKS. Once in Port::Construct() (and when // Port::OnNetworkTypeChanged is called). - ABSL_DEPRECATED( - "Use the version with field trials, see bugs.webrtc.org/webrtc:10335") - uint16_t GetCost(const webrtc::FieldTrialsView* field_trials = nullptr) const; uint16_t GetCost(const webrtc::FieldTrialsView& field_trials) const; // A unique id assigned by the network manager, which may be signaled