Delete unused member RTCPSender::FeedbackState::send_payload_type.

It became unused with cl https://codereview.webrtc.org/2746413003/

BUG=webrtc:7338

Review-Url: https://codereview.webrtc.org/2759433005
Cr-Commit-Position: refs/heads/master@{#17293}
This commit is contained in:
nisse 2017-03-17 07:04:00 -07:00 committed by Commit bot
parent 3b941bef7a
commit 40ba3addc7
5 changed files with 2 additions and 11 deletions

View File

@ -77,8 +77,7 @@ std::string NACKStringBuilder::GetResult() {
}
RTCPSender::FeedbackState::FeedbackState()
: send_payload_type(0),
packets_sent(0),
: packets_sent(0),
media_bytes_sent(0),
send_bitrate(0),
last_rr_ntp_secs(0),

View File

@ -60,7 +60,6 @@ class RTCPSender {
struct FeedbackState {
FeedbackState();
uint8_t send_payload_type;
uint32_t packets_sent;
size_t media_bytes_sent;
uint32_t send_bitrate;

View File

@ -318,7 +318,6 @@ RTCPSender::FeedbackState ModuleRtpRtcpImpl::GetFeedbackState() {
rtp_sender_.GetDataCounters(&rtp_stats, &rtx_stats);
RTCPSender::FeedbackState state;
state.send_payload_type = rtp_sender_.SendPayloadType();
state.packets_sent = rtp_stats.transmitted.packets +
rtx_stats.transmitted.packets;
state.media_bytes_sent = rtp_stats.transmitted.payload_bytes +

View File

@ -276,16 +276,12 @@ int32_t RTPSender::DeRegisterSendPayload(int8_t payload_type) {
return 0;
}
// TODO(nisse): Delete this method, only used internally and by test code.
void RTPSender::SetSendPayloadType(int8_t payload_type) {
rtc::CritScope lock(&send_critsect_);
payload_type_ = payload_type;
}
int8_t RTPSender::SendPayloadType() const {
rtc::CritScope lock(&send_critsect_);
return payload_type_;
}
void RTPSender::SetMaxRtpPacketSize(size_t max_packet_size) {
// Sanity check.
RTC_DCHECK(max_packet_size >= 100 && max_packet_size <= IP_PACKET_SIZE)

View File

@ -84,8 +84,6 @@ class RTPSender {
void SetSendPayloadType(int8_t payload_type);
int8_t SendPayloadType() const;
void SetSendingMediaStatus(bool enabled);
bool SendingMedia() const;