diff --git a/p2p/base/connection.cc b/p2p/base/connection.cc index e0e5c150b2..aa50e267a7 100644 --- a/p2p/base/connection.cc +++ b/p2p/base/connection.cc @@ -293,7 +293,6 @@ Connection::Connection(Port* port, connected_(true), pruned_(false), use_candidate_attr_(false), - remote_ice_mode_(ICEMODE_FULL), requests_(port->thread()), rtt_(DEFAULT_RTT), last_ping_sent_(0), diff --git a/p2p/base/connection.h b/p2p/base/connection.h index 7efe7d65e9..8155dd4c59 100644 --- a/p2p/base/connection.h +++ b/p2p/base/connection.h @@ -189,7 +189,6 @@ class Connection : public CandidatePairInterface, // a nomination value. The controlling agent gets its `acked_nomination_` set // when receiving a response to a nominating ping. bool nominated() const { return acked_nomination_ || remote_nomination_; } - void set_remote_ice_mode(IceMode mode) { remote_ice_mode_ = mode; } int receiving_timeout() const; void set_receiving_timeout(absl::optional receiving_timeout_ms) { @@ -272,8 +271,6 @@ class Connection : public CandidatePairInterface, int num_pings_sent() const { return num_pings_sent_; } - IceMode remote_ice_mode() const { return remote_ice_mode_; } - uint32_t ComputeNetworkCost() const; // Update the ICE password and/or generation of the remote candidate if the @@ -419,7 +416,6 @@ class Connection : public CandidatePairInterface, // value will be 1 if the connection has been nominated. uint32_t remote_nomination_ = 0; - IceMode remote_ice_mode_; StunRequestManager requests_; int rtt_; int rtt_samples_ = 0; diff --git a/p2p/base/p2p_transport_channel.cc b/p2p/base/p2p_transport_channel.cc index 9601ee8e9f..47f858e272 100644 --- a/p2p/base/p2p_transport_channel.cc +++ b/p2p/base/p2p_transport_channel.cc @@ -264,7 +264,6 @@ void P2PTransportChannel::AddAllocatorSession( void P2PTransportChannel::AddConnection(Connection* connection) { RTC_DCHECK_RUN_ON(network_thread_); - connection->set_remote_ice_mode(remote_ice_mode_); connection->set_receiving_timeout(config_.receiving_timeout); connection->set_unwritable_timeout(config_.ice_unwritable_timeout); connection->set_unwritable_min_checks(config_.ice_unwritable_min_checks); diff --git a/p2p/base/port_unittest.cc b/p2p/base/port_unittest.cc index 129c71c88b..c3ec311513 100644 --- a/p2p/base/port_unittest.cc +++ b/p2p/base/port_unittest.cc @@ -284,7 +284,6 @@ class TestChannel : public sigslot::has_slots<> { conn_ = port_->CreateConnection(remote_candidate, Port::ORIGIN_MESSAGE); IceMode remote_ice_mode = (ice_mode_ == ICEMODE_FULL) ? ICEMODE_LITE : ICEMODE_FULL; - conn_->set_remote_ice_mode(remote_ice_mode); conn_->set_use_candidate_attr(remote_ice_mode == ICEMODE_FULL); conn_->SignalStateChange.connect(this, &TestChannel::OnConnectionStateChange);