From 090699a01bfc2f91af97e6461ff126bef996905a Mon Sep 17 00:00:00 2001 From: Danil Chapovalov Date: Fri, 8 Sep 2023 11:54:03 +0200 Subject: [PATCH] Delete deprecated RtpSource timestamp_ms constructor and accessor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:13756 Change-Id: Ic43cf82451785b4fbe184fce466e77b16b2c781a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/319581 Reviewed-by: Björn Terelius Commit-Queue: Danil Chapovalov Cr-Commit-Position: refs/heads/main@{#40765} --- api/transport/rtp/rtp_source.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/api/transport/rtp/rtp_source.h b/api/transport/rtp/rtp_source.h index 03eeb259d4..11149f5421 100644 --- a/api/transport/rtp/rtp_source.h +++ b/api/transport/rtp/rtp_source.h @@ -56,31 +56,12 @@ class RtpSource { extensions_(extensions), rtp_timestamp_(rtp_timestamp) {} - // TODO(bugs.webrtc.org/13757): Remove after 2023-09-18 - [[deprecated]] RtpSource(int64_t timestamp_ms, - uint32_t source_id, - RtpSourceType source_type, - uint32_t rtp_timestamp, - const RtpSource::Extensions& extensions) - : timestamp_(Timestamp::Millis(timestamp_ms)), - source_id_(source_id), - source_type_(source_type), - extensions_(extensions), - rtp_timestamp_(rtp_timestamp) {} - RtpSource(const RtpSource&) = default; RtpSource& operator=(const RtpSource&) = default; ~RtpSource() = default; Timestamp timestamp() const { return timestamp_; } - // TODO(bugs.webrtc.org/13757): Remove after 2023-09-18 - [[deprecated]] int64_t timestamp_ms() const { return timestamp_.ms(); } - [[deprecated]] void update_timestamp_ms(int64_t timestamp_ms) { - RTC_DCHECK_LE(timestamp_.ms(), timestamp_ms); - timestamp_ = Timestamp::Millis(timestamp_ms); - } - // The identifier of the source can be the CSRC or the SSRC. uint32_t source_id() const { return source_id_; }