diff --git a/call/flexfec_receive_stream.h b/call/flexfec_receive_stream.h index 31aa99d0bb..b54eadd9b3 100644 --- a/call/flexfec_receive_stream.h +++ b/call/flexfec_receive_stream.h @@ -29,13 +29,6 @@ class FlexfecReceiveStream : public RtpPacketSinkInterface, public: ~FlexfecReceiveStream() override = default; - struct Stats { - std::string ToString(int64_t time_ms) const; - - // TODO(brandtr): Add appropriate stats here. - int flexfec_bitrate_bps; - }; - struct Config { explicit Config(Transport* rtcp_send_transport); Config(const Config&); @@ -66,8 +59,6 @@ class FlexfecReceiveStream : public RtpPacketSinkInterface, // Transport for outgoing RTCP packets. Transport* rtcp_send_transport = nullptr; }; - - virtual Stats GetStats() const = 0; }; } // namespace webrtc diff --git a/call/flexfec_receive_stream_impl.cc b/call/flexfec_receive_stream_impl.cc index 59add821d1..90bb3f3189 100644 --- a/call/flexfec_receive_stream_impl.cc +++ b/call/flexfec_receive_stream_impl.cc @@ -31,14 +31,6 @@ namespace webrtc { -std::string FlexfecReceiveStream::Stats::ToString(int64_t time_ms) const { - char buf[1024]; - rtc::SimpleStringBuilder ss(buf); - ss << "FlexfecReceiveStream stats: " << time_ms - << ", {flexfec_bitrate_bps: " << flexfec_bitrate_bps << "}"; - return ss.str(); -} - std::string FlexfecReceiveStream::Config::ToString() const { char buf[1024]; rtc::SimpleStringBuilder ss(buf); @@ -196,12 +188,6 @@ void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) { } } -// TODO(brandtr): Implement this member function when we have designed the -// stats for FlexFEC. -FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const { - return FlexfecReceiveStream::Stats(); -} - void FlexfecReceiveStreamImpl::SetRtpExtensions( std::vector extensions) { RTC_DCHECK_RUN_ON(&packet_sequence_checker_); diff --git a/call/flexfec_receive_stream_impl.h b/call/flexfec_receive_stream_impl.h index 48edf098e0..5bfe5cae40 100644 --- a/call/flexfec_receive_stream_impl.h +++ b/call/flexfec_receive_stream_impl.h @@ -55,9 +55,6 @@ class FlexfecReceiveStreamImpl : public FlexfecReceiveStream { // RtpPacketSinkInterface. void OnRtpPacket(const RtpPacketReceived& packet) override; - - Stats GetStats() const override; - // ReceiveStreamInterface impl. void SetRtpExtensions(std::vector extensions) override; RtpHeaderExtensionMap GetRtpExtensionMap() const override; diff --git a/media/engine/fake_webrtc_call.cc b/media/engine/fake_webrtc_call.cc index 4558119f6b..b7ffd0f301 100644 --- a/media/engine/fake_webrtc_call.cc +++ b/media/engine/fake_webrtc_call.cc @@ -427,11 +427,6 @@ FakeFlexfecReceiveStream::GetConfig() const { return config_; } -// TODO(brandtr): Implement when the stats have been designed. -webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { - return webrtc::FlexfecReceiveStream::Stats(); -} - void FakeFlexfecReceiveStream::OnRtpPacket(const webrtc::RtpPacketReceived&) { RTC_DCHECK_NOTREACHED() << "Not implemented."; } diff --git a/media/engine/fake_webrtc_call.h b/media/engine/fake_webrtc_call.h index 3c458299d6..8dca0dddcf 100644 --- a/media/engine/fake_webrtc_call.h +++ b/media/engine/fake_webrtc_call.h @@ -316,8 +316,6 @@ class FakeFlexfecReceiveStream final : public webrtc::FlexfecReceiveStream { uint32_t remote_ssrc() const { return config_.rtp.remote_ssrc; } private: - webrtc::FlexfecReceiveStream::Stats GetStats() const override; - void OnRtpPacket(const webrtc::RtpPacketReceived& packet) override; webrtc::FlexfecReceiveStream::Config config_;