From 92364b8db8a6a0b1cb54cb238d772218ad1195b1 Mon Sep 17 00:00:00 2001 From: Richard Hodges Date: Tue, 2 Jun 2020 16:05:04 +0200 Subject: [PATCH] Remove reset function from flat_static_buffer (API Change): API Changes: The reset function has been removed from flat_static_buffer. Use the clear function instead. refs #1934 --- CHANGELOG.md | 4 ++++ include/boost/beast/core/flat_static_buffer.hpp | 17 ----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c5bfad3..9c2d7e61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* Remove `reset` function from `flat_static_buffer` (API Change) * Remove `mutable_data_type` from Dyanmic Buffers (API Change) * Remove deprecated lowest_layer from test::stream * Remove handler_pointer (API Change) @@ -7,6 +8,9 @@ API Changes: +* The `reset` function has been removed from `flat_static_buffer`. Use the + `clear` function instead. + * Code that depends on `mutable_data_type` should be refactored to use `mutable_buffers_type`. Classes affected are: - `buffers_adaptor` diff --git a/include/boost/beast/core/flat_static_buffer.hpp b/include/boost/beast/core/flat_static_buffer.hpp index 7a3aa9b6..48b378d8 100644 --- a/include/boost/beast/core/flat_static_buffer.hpp +++ b/include/boost/beast/core/flat_static_buffer.hpp @@ -92,23 +92,6 @@ public: void clear() noexcept; -#ifdef BOOST_BEAST_ALLOW_DEPRECATED - /// Change the number of readable and writable bytes to zero. - void - reset() noexcept - { - clear(); - } -#elif ! BOOST_BEAST_DOXYGEN - template - void - reset() noexcept - { - static_assert(I != 0, - BOOST_BEAST_DEPRECATION_STRING); - } -#endif - //-------------------------------------------------------------------------- /// The ConstBufferSequence used to represent the readable bytes.