Delete unused method NetEq::PacketBufferStatistics

Bug: None
Change-Id: I9f87e445e2b5b54f78474489172f694abff38363
Reviewed-on: https://webrtc-review.googlesource.com/c/111660
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25766}
This commit is contained in:
Niels Möller
2018-11-21 15:24:27 +01:00
committed by Commit Bot
parent 5f2ffeec22
commit 6d254bcd5e
5 changed files with 0 additions and 20 deletions

View File

@ -259,10 +259,6 @@ class NetEq {
// Flushes both the packet buffer and the sync buffer.
virtual void FlushBuffers() = 0;
// Current usage of packet-buffer and it's limits.
virtual void PacketBufferStatistics(int* current_num_packets,
int* max_num_packets) const = 0;
// Enables NACK and sets the maximum size of the NACK list, which should be
// positive and no larger than Nack::kNackListSizeLimit. If NACK is already
// enabled then the maximum NACK list size is modified accordingly.

View File

@ -461,12 +461,6 @@ void NetEqImpl::FlushBuffers() {
first_packet_ = true;
}
void NetEqImpl::PacketBufferStatistics(int* current_num_packets,
int* max_num_packets) const {
rtc::CritScope lock(&crit_sect_);
packet_buffer_->BufferStat(current_num_packets, max_num_packets);
}
void NetEqImpl::EnableNack(size_t max_nack_list_size) {
rtc::CritScope lock(&crit_sect_);
if (!nack_enabled_) {

View File

@ -192,9 +192,6 @@ class NetEqImpl : public webrtc::NetEq {
// Flushes both the packet buffer and the sync buffer.
void FlushBuffers() override;
void PacketBufferStatistics(int* current_num_packets,
int* max_num_packets) const override;
void EnableNack(size_t max_nack_list_size) override;
void DisableNack() override;

View File

@ -299,9 +299,4 @@ bool PacketBuffer::ContainsDtxOrCngPacket(
return false;
}
void PacketBuffer::BufferStat(int* num_packets, int* max_num_packets) const {
*num_packets = static_cast<int>(buffer_.size());
*max_num_packets = static_cast<int>(max_number_of_packets_);
}
} // namespace webrtc

View File

@ -125,8 +125,6 @@ class PacketBuffer {
virtual bool ContainsDtxOrCngPacket(
const DecoderDatabase* decoder_database) const;
virtual void BufferStat(int* num_packets, int* max_num_packets) const;
// Static method returning true if |timestamp| is older than |timestamp_limit|
// but less than |horizon_samples| behind |timestamp_limit|. For instance,
// with timestamp_limit = 100 and horizon_samples = 10, a timestamp in the