Delete unused method PayloadRouter::MaxPayloadLength.

Documentation was also unclear, it seems it returned the RTP packet
size including RTP headers.

BUG=None.

Review-Url: https://codereview.webrtc.org/2588343002
Cr-Commit-Position: refs/heads/master@{#15707}
This commit is contained in:
nisse
2016-12-20 03:12:04 -08:00
committed by Commit bot
parent 8bab796db7
commit 5206667dad
3 changed files with 0 additions and 56 deletions

View File

@ -98,11 +98,6 @@ PayloadRouter::PayloadRouter(const std::vector<RtpRtcp*>& rtp_modules,
PayloadRouter::~PayloadRouter() {}
size_t PayloadRouter::DefaultMaxPayloadLength() {
const size_t kIpUdpSrtpLength = 44;
return IP_PACKET_SIZE - kIpUdpSrtpLength;
}
void PayloadRouter::SetActive(bool active) {
rtc::CritScope lock(&crit_);
if (active_ == active)
@ -149,17 +144,6 @@ EncodedImageCallback::Result PayloadRouter::OnEncodedImage(
return Result(Result::OK, frame_id);
}
size_t PayloadRouter::MaxPayloadLength() const {
size_t min_payload_length = DefaultMaxPayloadLength();
rtc::CritScope lock(&crit_);
for (size_t i = 0; i < rtp_modules_.size(); ++i) {
size_t module_payload_length = rtp_modules_[i]->MaxDataPayloadLength();
if (module_payload_length < min_payload_length)
min_payload_length = module_payload_length;
}
return min_payload_length;
}
void PayloadRouter::OnBitrateAllocationUpdated(
const BitrateAllocation& bitrate) {
rtc::CritScope lock(&crit_);