mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Delete depercated variant of the Network::GetCost function
Bug: webrtc:42220378 Change-Id: Iebfc924ab55896981cbf83407a9b049e4d0dde8f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/350303 Auto-Submit: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42269}
This commit is contained in:
parent
2cdf840b53
commit
58a9f6d490
2 changed files with 0 additions and 11 deletions
|
@ -32,11 +32,9 @@
|
||||||
#include "absl/strings/match.h"
|
#include "absl/strings/match.h"
|
||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
#include "api/task_queue/pending_task_safety_flag.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 "api/units/time_delta.h"
|
||||||
#include "rtc_base/checks.h"
|
#include "rtc_base/checks.h"
|
||||||
#include "rtc_base/logging.h"
|
#include "rtc_base/logging.h"
|
||||||
#include "rtc_base/memory/always_valid_pointer.h"
|
|
||||||
#include "rtc_base/network_monitor.h"
|
#include "rtc_base/network_monitor.h"
|
||||||
#include "rtc_base/socket.h" // includes something that makes windows happy
|
#include "rtc_base/socket.h" // includes something that makes windows happy
|
||||||
#include "rtc_base/string_encode.h"
|
#include "rtc_base/string_encode.h"
|
||||||
|
@ -1205,12 +1203,6 @@ webrtc::MdnsResponderInterface* Network::GetMdnsResponder() const {
|
||||||
return mdns_responder_provider_->GetMdnsResponder();
|
return mdns_responder_provider_->GetMdnsResponder();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t Network::GetCost(const webrtc::FieldTrialsView* field_trials) const {
|
|
||||||
return GetCost(
|
|
||||||
*webrtc::AlwaysValidPointer<const webrtc::FieldTrialsView,
|
|
||||||
webrtc::FieldTrialBasedConfig>(field_trials));
|
|
||||||
}
|
|
||||||
|
|
||||||
uint16_t Network::GetCost(const webrtc::FieldTrialsView& field_trials) const {
|
uint16_t Network::GetCost(const webrtc::FieldTrialsView& field_trials) const {
|
||||||
AdapterType type = IsVpn() ? underlying_type_for_vpn_ : type_;
|
AdapterType type = IsVpn() ? underlying_type_for_vpn_ : type_;
|
||||||
const bool use_differentiated_cellular_costs =
|
const bool use_differentiated_cellular_costs =
|
||||||
|
|
|
@ -535,9 +535,6 @@ class RTC_EXPORT Network {
|
||||||
// Twice per Network in BasicPortAllocator if
|
// Twice per Network in BasicPortAllocator if
|
||||||
// PORTALLOCATOR_DISABLE_COSTLY_NETWORKS. Once in Port::Construct() (and when
|
// PORTALLOCATOR_DISABLE_COSTLY_NETWORKS. Once in Port::Construct() (and when
|
||||||
// Port::OnNetworkTypeChanged is called).
|
// 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;
|
uint16_t GetCost(const webrtc::FieldTrialsView& field_trials) const;
|
||||||
|
|
||||||
// A unique id assigned by the network manager, which may be signaled
|
// A unique id assigned by the network manager, which may be signaled
|
||||||
|
|
Loading…
Reference in a new issue