aimd: Remove unused variable
BUG= Review-Url: https://codereview.webrtc.org/2187843002 Cr-Commit-Position: refs/heads/master@{#13553}
This commit is contained in:
parent
8b2233f5a6
commit
1a993d12bb
@ -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_;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user