Delete unused method RtpRtcp::GetRtpPacketLossStats
It was introduced, together with the PacketLossStats class, in cl https://codereview.webrtc.org/1198853004 (#9568). It is unused in webrtc, but there's downstream usage of the PacketLossStats class, which should perhaps be moved or deleted in a later cl. Bug: None Change-Id: I17a3d5c8748f2cc9809c438630cbe8ab680466c4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140042 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28153}
This commit is contained in:
@ -558,31 +558,6 @@ void ModuleRtpRtcpImpl::GetSendStreamDataCounters(
|
||||
rtp_sender_->GetDataCounters(rtp_counters, rtx_counters);
|
||||
}
|
||||
|
||||
void ModuleRtpRtcpImpl::GetRtpPacketLossStats(
|
||||
bool outgoing,
|
||||
uint32_t ssrc,
|
||||
struct RtpPacketLossStats* loss_stats) const {
|
||||
if (!loss_stats)
|
||||
return;
|
||||
const PacketLossStats* stats_source = NULL;
|
||||
if (outgoing) {
|
||||
if (SSRC() == ssrc) {
|
||||
stats_source = &send_loss_stats_;
|
||||
}
|
||||
} else {
|
||||
if (rtcp_receiver_.RemoteSSRC() == ssrc) {
|
||||
stats_source = &receive_loss_stats_;
|
||||
}
|
||||
}
|
||||
if (stats_source) {
|
||||
loss_stats->single_packet_loss_count = stats_source->GetSingleLossCount();
|
||||
loss_stats->multiple_packet_loss_event_count =
|
||||
stats_source->GetMultipleLossEventCount();
|
||||
loss_stats->multiple_packet_loss_packet_count =
|
||||
stats_source->GetMultipleLossPacketCount();
|
||||
}
|
||||
}
|
||||
|
||||
// Received RTCP report.
|
||||
int32_t ModuleRtpRtcpImpl::RemoteRTCPStat(
|
||||
std::vector<RTCPReportBlock>* receive_blocks) const {
|
||||
@ -649,9 +624,6 @@ void ModuleRtpRtcpImpl::SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) {
|
||||
// Send a Negative acknowledgment packet.
|
||||
int32_t ModuleRtpRtcpImpl::SendNACK(const uint16_t* nack_list,
|
||||
const uint16_t size) {
|
||||
for (int i = 0; i < size; ++i) {
|
||||
receive_loss_stats_.AddLostPacket(nack_list[i]);
|
||||
}
|
||||
uint16_t nack_length = size;
|
||||
uint16_t start_id = 0;
|
||||
int64_t now_ms = clock_->TimeInMilliseconds();
|
||||
@ -789,9 +761,6 @@ void ModuleRtpRtcpImpl::OnReceivedNack(
|
||||
if (!rtp_sender_)
|
||||
return;
|
||||
|
||||
for (uint16_t nack_sequence_number : nack_sequence_numbers) {
|
||||
send_loss_stats_.AddLostPacket(nack_sequence_number);
|
||||
}
|
||||
if (!rtp_sender_->StorePackets() || nack_sequence_numbers.size() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user