From 42848288872521545ff9310dd7c7a72f892c2e23 Mon Sep 17 00:00:00 2001 From: Danil Chapovalov Date: Thu, 13 Jun 2019 14:53:08 +0200 Subject: [PATCH] Remove deprecated version of RtpPacket::SetPadding that used to randomize padding was deprecated in https://webrtc-review.googlesource.com/c/src/+/103983 Bug: None Change-Id: I617b7b5112446deaa9be983978cabdb247638266 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141865 Commit-Queue: Danil Chapovalov Reviewed-by: Niels Moller Cr-Commit-Position: refs/heads/master@{#28266} --- modules/rtp_rtcp/source/rtp_packet.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/rtp_rtcp/source/rtp_packet.h b/modules/rtp_rtcp/source/rtp_packet.h index c067580e09..a0ecf1e74d 100644 --- a/modules/rtp_rtcp/source/rtp_packet.h +++ b/modules/rtp_rtcp/source/rtp_packet.h @@ -17,10 +17,8 @@ #include "modules/rtp_rtcp/include/rtp_header_extension_map.h" #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "rtc_base/copy_on_write_buffer.h" -#include "rtc_base/deprecation.h" namespace webrtc { -class Random; class RtpPacket { public: @@ -125,10 +123,6 @@ class RtpPacket { uint8_t* SetPayloadSize(size_t size_bytes); // Same as SetPayloadSize but doesn't guarantee to keep current payload. uint8_t* AllocatePayload(size_t size_bytes); - RTC_DEPRECATED - bool SetPadding(uint8_t size_bytes, Random* random) { - return SetPadding(size_bytes); - } bool SetPadding(size_t padding_size);