From c5ba5e9572df8055c0106f44c42abccc68d65960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Thu, 25 Apr 2019 11:44:55 +0200 Subject: [PATCH] Delete unused methods of VCMJitterEstimator ResetNackCount and UpdateMaxFrameSize were unused. Bug: None Change-Id: I314b3edce368ee3230bc3510e1bba520806d1493 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/134201 Reviewed-by: Philip Eliasson Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#27789} --- modules/video_coding/jitter_estimator.cc | 10 ---------- modules/video_coding/jitter_estimator.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/modules/video_coding/jitter_estimator.cc b/modules/video_coding/jitter_estimator.cc index a4fb696986..d4899a2803 100644 --- a/modules/video_coding/jitter_estimator.cc +++ b/modules/video_coding/jitter_estimator.cc @@ -112,10 +112,6 @@ void VCMJitterEstimator::Reset() { fps_counter_.Reset(); } -void VCMJitterEstimator::ResetNackCount() { - _nackCount = 0; -} - // Updates the estimates with the new measurements. void VCMJitterEstimator::UpdateEstimate(int64_t frameDelayMS, uint32_t frameSizeBytes, @@ -376,12 +372,6 @@ void VCMJitterEstimator::UpdateRtt(int64_t rttMs) { _rttFilter.Update(rttMs); } -void VCMJitterEstimator::UpdateMaxFrameSize(uint32_t frameSizeBytes) { - if (_maxFrameSize < frameSizeBytes) { - _maxFrameSize = frameSizeBytes; - } -} - // Returns the current filtered estimate if available, // otherwise tries to calculate an estimate. int VCMJitterEstimator::GetJitterEstimate(double rttMultiplier, diff --git a/modules/video_coding/jitter_estimator.h b/modules/video_coding/jitter_estimator.h index 60c1780e7a..a58d667ad2 100644 --- a/modules/video_coding/jitter_estimator.h +++ b/modules/video_coding/jitter_estimator.h @@ -26,7 +26,6 @@ class VCMJitterEstimator { // Resets the estimate to the initial state. void Reset(); - void ResetNackCount(); // Updates the jitter estimate with the new data. // @@ -58,8 +57,6 @@ class VCMJitterEstimator { // - rttMs : RTT in ms. void UpdateRtt(int64_t rttMs); - void UpdateMaxFrameSize(uint32_t frameSizeBytes); - // A constant describing the delay from the jitter buffer to the delay on the // receiving side which is not accounted for by the jitter buffer nor the // decoding delay estimate.