From 1a993d12bb7950fe5cd51231d390524b2922a21d Mon Sep 17 00:00:00 2001 From: isheriff Date: Thu, 28 Jul 2016 06:34:38 -0700 Subject: [PATCH] aimd: Remove unused variable BUG= Review-Url: https://codereview.webrtc.org/2187843002 Cr-Commit-Position: refs/heads/master@{#13553} --- webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc | 5 ----- webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h | 1 - 2 files changed, 6 deletions(-) diff --git a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc index 295a2f4ddf..f83cddc617 100644 --- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc +++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc @@ -23,7 +23,6 @@ namespace webrtc { static const int64_t kDefaultRttMs = 200; -static const int64_t kLogIntervalMs = 1000; static const double kWithinIncomingBitrateHysteresis = 1.05; static const int64_t kMaxFeedbackIntervalMs = 1000; @@ -43,7 +42,6 @@ AimdRateControl::AimdRateControl() bitrate_is_initialized_(false), beta_(0.85f), rtt_(kDefaultRttMs), - time_of_last_log_(-1), in_experiment_(!AdaptiveThresholdExperimentIsDisabled()) {} void AimdRateControl::SetMinBitrate(int min_bitrate_bps) { @@ -90,9 +88,6 @@ uint32_t AimdRateControl::UpdateBandwidthEstimate(int64_t now_ms) { current_bitrate_bps_ = ChangeBitrate( current_bitrate_bps_, current_input_.incoming_bitrate.value_or(current_bitrate_bps_), now_ms); - if (now_ms - time_of_last_log_ > kLogIntervalMs) { - time_of_last_log_ = now_ms; - } return current_bitrate_bps_; } diff --git a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h index 3ac80752b4..2b2e85bf91 100644 --- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h +++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h @@ -78,7 +78,6 @@ class AimdRateControl { bool bitrate_is_initialized_; float beta_; int64_t rtt_; - int64_t time_of_last_log_; bool in_experiment_; }; } // namespace webrtc