Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc

Issue 2187843002: aimd: Remove unused variable (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
index 295a2f4ddf59adcfd4b2593e17a06756d5f9dcb4..f83cddc617862b56ca50131895e97921084178b2 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_;
}
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698