Index: webrtc/video/payload_router.cc |
diff --git a/webrtc/video/payload_router.cc b/webrtc/video/payload_router.cc |
index 8b29e818f0eff00e21eb77b594971451caad567b..f2f430904e92af77b1f26d3a55c1898392796d25 100644 |
--- a/webrtc/video/payload_router.cc |
+++ b/webrtc/video/payload_router.cc |
@@ -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_); |