diff --git a/src/modules/remote_bitrate_estimator/bitrate_estimator.cc b/src/modules/remote_bitrate_estimator/bitrate_estimator.cc index 2e5befad56..5c2d05ad62 100644 --- a/src/modules/remote_bitrate_estimator/bitrate_estimator.cc +++ b/src/modules/remote_bitrate_estimator/bitrate_estimator.cc @@ -71,11 +71,6 @@ WebRtc_UWord32 BitRateStats::BitRate(WebRtc_Word64 nowMs) // Calculate the average bit rate the past BITRATE_AVERAGE_WINDOW ms. // Removes any old samples from the list. EraseOld(nowMs); - WebRtc_Word64 timeOldest = nowMs; - if (_dataSamples.size() > 0) - { - timeOldest = _dataSamples.front()->_timeCompleteMs; - } return static_cast(_accumulatedBytes * 8.0f * 1000.0f / kBitrateAverageWindow + 0.5f); }