Remove deprecated RtpSenderInterface::GetParameters() const method

Bug: webrtc:7580
Change-Id: If6e44509256508a23c5903324f29560157974986
Reviewed-on: https://webrtc-review.googlesource.com/80962
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23518}
This commit is contained in:
Florent Castelli
2018-06-04 16:01:22 +02:00
committed by Commit Bot
parent 45a57fda24
commit 4c6390aabc

View File

@ -54,13 +54,7 @@ class RtpSenderInterface : public rtc::RefCountInterface {
// tracks.
virtual std::vector<std::string> stream_ids() const = 0;
// TODO(orphis): Transitional implementation
// Remove the const implementation and make the non-const pure virtual once
// when external code depending on this has updated
virtual RtpParameters GetParameters() { return RtpParameters(); }
RTC_DEPRECATED virtual RtpParameters GetParameters() const {
return const_cast<RtpSenderInterface*>(this)->GetParameters();
}
virtual RtpParameters GetParameters() = 0;
// Note that only a subset of the parameters can currently be changed. See
// rtpparameters.h
virtual RTCError SetParameters(const RtpParameters& parameters) = 0;