From 486cbd37ca47de6bc840f24f29e7d1dc4701093f Mon Sep 17 00:00:00 2001 From: landrey Date: Mon, 18 Oct 2021 09:48:52 +0000 Subject: [PATCH] Remove unused variable This makes android bots fail and blocks chromium to webrtc roll: https://webrtc-review.googlesource.com/c/src/+/235484/. Unused variable was there for a while. This was probably triggered by Chromium enabling -Wunused-but-set-variable on the toolchain level. Bug: b/203383377 Change-Id: I50e1c7852def90501694cba57d3a3611c2ffa149 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235377 Reviewed-by: Mirko Bonadei Reviewed-by: Sebastian Jansson Commit-Queue: Andrey Logvin Cr-Commit-Position: refs/heads/main@{#35226} --- modules/congestion_controller/pcc/monitor_interval.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/congestion_controller/pcc/monitor_interval.cc b/modules/congestion_controller/pcc/monitor_interval.cc index 6bc9f4a7ef..de1e2d5e69 100644 --- a/modules/congestion_controller/pcc/monitor_interval.cc +++ b/modules/congestion_controller/pcc/monitor_interval.cc @@ -70,13 +70,10 @@ double PccMonitorInterval::ComputeDelayGradient( return 0; } double sum_times = 0; - double sum_delays = 0; for (const ReceivedPacket& packet : received_packets_) { double time_delta_us = (packet.sent_time - received_packets_[0].sent_time).us(); - double delay = packet.delay.us(); sum_times += time_delta_us; - sum_delays += delay; } double sum_squared_scaled_time_deltas = 0; double sum_scaled_time_delta_dot_delay = 0;