Remove deprecated RTCStatsReport(int64) and timestamp_us

BUG=webrtc:14813

Change-Id: I80c2ba8f57354ef63cf2cc7b767d1f64dd0dd766
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/298444
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#39633}
This commit is contained in:
Philipp Hancke 2023-03-20 15:46:11 +01:00 committed by WebRTC LUCI CQ
parent 59330974c1
commit f0f435e983
2 changed files with 0 additions and 20 deletions

View file

@ -60,24 +60,13 @@ class RTC_EXPORT RTCStatsReport final
StatsMap::const_iterator it_;
};
// TODO(bugs.webrtc.org/13756): deprecate this in favor of Timestamp.
// TODO(hbos): Remove "= 0" once downstream has been updated to call with a
// parameter.
ABSL_DEPRECATED("Call Create with Timestamp instead")
static rtc::scoped_refptr<RTCStatsReport> Create(int64_t timestamp_us = 0);
static rtc::scoped_refptr<RTCStatsReport> Create(Timestamp timestamp);
// TODO(bugs.webrtc.org/13756): deprecate this in favor of Timestamp.
ABSL_DEPRECATED("Use constructor with Timestamp instead")
explicit RTCStatsReport(int64_t timestamp_us);
explicit RTCStatsReport(Timestamp timestamp);
RTCStatsReport(const RTCStatsReport& other) = delete;
rtc::scoped_refptr<RTCStatsReport> Copy() const;
// TODO(bugs.webrtc.org/13756): deprecate this in favor of Timestamp.
ABSL_DEPRECATED("Call timestamp() instead")
int64_t timestamp_us() const { return timestamp_.us_or(-1); }
Timestamp timestamp() const { return timestamp_; }
void AddStats(std::unique_ptr<const RTCStats> stats);
// On success, returns a non-owning pointer to `stats`. If the stats ID is not

View file

@ -54,19 +54,10 @@ bool RTCStatsReport::ConstIterator::operator!=(
return !(*this == other);
}
rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Create(
int64_t timestamp_us) {
return rtc::scoped_refptr<RTCStatsReport>(
new RTCStatsReport(Timestamp::Micros(timestamp_us)));
}
rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Create(Timestamp timestamp) {
return rtc::scoped_refptr<RTCStatsReport>(new RTCStatsReport(timestamp));
}
RTCStatsReport::RTCStatsReport(int64_t timestamp_us)
: RTCStatsReport(Timestamp::Micros(timestamp_us)) {}
RTCStatsReport::RTCStatsReport(Timestamp timestamp) : timestamp_(timestamp) {}
rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Copy() const {