diff --git a/cpp/src/arrow/ipc/reader.h b/cpp/src/arrow/ipc/reader.h index 2c61630b2b6e3..de4606094049c 100644 --- a/cpp/src/arrow/ipc/reader.h +++ b/cpp/src/arrow/ipc/reader.h @@ -428,30 +428,7 @@ class ARROW_EXPORT StreamDecoder { /// \brief Reset the internal status. /// /// You can reuse this decoder for new stream after calling - /// this. For example, you can implement endless decoder with this: - /// - /// ~~~{.cpp} - /// class EndlessListener : public arrow::ipc::Listener { - /// public: - /// explicit EndlessListener() : arrow::ipc::Listener(), decoder_() {} - /// - /// arrow::Status OnEOS() override { - /// return decoder_->Reset(); - /// } - /// - /// void SetDecoder(arrow::ipc::StreamDecoder* decoder) { - /// decoder_ = decoder; - /// } - /// - /// private: - /// arrow::ipc::StreamDecoder* decoder_; - /// }; - /// - /// auto listener = std::make_shared(); - /// arrow::ipc::StreamDecoder decoder(listener); - /// listener->SetDecoder(&decoder); - /// decoder.Consume(...); - /// ~~~ + /// this. /// /// \return Status Status Reset();