Commit ae431b92 authored by Florent Castelli's avatar Florent Castelli Committed by Commit Bot

Remove overloads of SetCodecPreferences()

The base function is changing to return an RTCError, so we need to stop
overriding the old function.

Bug: 891556
Change-Id: Id9d1a90732a07fa3877f5ce50824d920bacf2777
Reviewed-on: https://chromium-review.googlesource.com/c/1257860Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Commit-Queue: Florent Castelli <orphis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596242}
parent 439b35f5
...@@ -270,11 +270,6 @@ void FakeRtpTransceiver::Stop() { ...@@ -270,11 +270,6 @@ void FakeRtpTransceiver::Stop() {
NOTIMPLEMENTED(); NOTIMPLEMENTED();
} }
void FakeRtpTransceiver::SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) {
NOTIMPLEMENTED();
}
const char MockPeerConnectionImpl::kDummyOffer[] = "dummy offer"; const char MockPeerConnectionImpl::kDummyOffer[] = "dummy offer";
const char MockPeerConnectionImpl::kDummyAnswer[] = "dummy answer"; const char MockPeerConnectionImpl::kDummyAnswer[] = "dummy answer";
......
...@@ -92,8 +92,6 @@ class FakeRtpTransceiver : public webrtc::RtpTransceiverInterface { ...@@ -92,8 +92,6 @@ class FakeRtpTransceiver : public webrtc::RtpTransceiverInterface {
absl::optional<webrtc::RtpTransceiverDirection> current_direction() absl::optional<webrtc::RtpTransceiverDirection> current_direction()
const override; const override;
void Stop() override; void Stop() override;
void SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) override;
private: private:
cricket::MediaType media_type_; cricket::MediaType media_type_;
......
...@@ -164,11 +164,6 @@ void SurfaceSenderStateOnly::Stop() { ...@@ -164,11 +164,6 @@ void SurfaceSenderStateOnly::Stop() {
NOTIMPLEMENTED(); NOTIMPLEMENTED();
} }
void SurfaceSenderStateOnly::SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) {
NOTIMPLEMENTED();
}
SurfaceReceiverStateOnly::SurfaceReceiverStateOnly( SurfaceReceiverStateOnly::SurfaceReceiverStateOnly(
rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver) rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver)
: receiver_(std::move(receiver)) { : receiver_(std::move(receiver)) {
...@@ -217,9 +212,4 @@ void SurfaceReceiverStateOnly::Stop() { ...@@ -217,9 +212,4 @@ void SurfaceReceiverStateOnly::Stop() {
NOTIMPLEMENTED(); NOTIMPLEMENTED();
} }
void SurfaceReceiverStateOnly::SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) {
NOTIMPLEMENTED();
}
} // namespace content } // namespace content
...@@ -73,8 +73,6 @@ class CONTENT_EXPORT SurfaceSenderStateOnly ...@@ -73,8 +73,6 @@ class CONTENT_EXPORT SurfaceSenderStateOnly
absl::optional<webrtc::RtpTransceiverDirection> current_direction() absl::optional<webrtc::RtpTransceiverDirection> current_direction()
const override; const override;
void Stop() override; void Stop() override;
void SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) override;
private: private:
rtc::scoped_refptr<webrtc::RtpSenderInterface> sender_; rtc::scoped_refptr<webrtc::RtpSenderInterface> sender_;
...@@ -100,8 +98,6 @@ class CONTENT_EXPORT SurfaceReceiverStateOnly ...@@ -100,8 +98,6 @@ class CONTENT_EXPORT SurfaceReceiverStateOnly
absl::optional<webrtc::RtpTransceiverDirection> current_direction() absl::optional<webrtc::RtpTransceiverDirection> current_direction()
const override; const override;
void Stop() override; void Stop() override;
void SetCodecPreferences(
rtc::ArrayView<webrtc::RtpCodecCapability> codecs) override;
private: private:
rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver_; rtc::scoped_refptr<webrtc::RtpReceiverInterface> receiver_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment