From 9847fd6e6984b27c741de98d4c7c5ad19a036896 Mon Sep 17 00:00:00 2001 From: Damian Jarek Date: Mon, 24 Jun 2019 16:19:08 +0200 Subject: [PATCH] Remove redundant includes in core Signed-off-by: Damian Jarek --- CHANGELOG.md | 1 + include/boost/beast/core/detail/sha1.hpp | 3 --- include/boost/beast/core/detail/sha1.ipp | 1 - include/boost/beast/core/impl/static_buffer.hpp | 4 ---- include/boost/beast/core/impl/static_buffer.ipp | 3 --- include/boost/beast/core/static_buffer.hpp | 8 ++------ 6 files changed, 3 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbdcee1f..4b4a989c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Version 260: * Cleanup transitive includes in beast/core/detail/type_traits.hpp * Simplify generation of sec-websocket-key * Move detail::base64 helpers to tests +* Remove redundant includes in core -------------------------------------------------------------------------------- diff --git a/include/boost/beast/core/detail/sha1.hpp b/include/boost/beast/core/detail/sha1.hpp index abcc3074..c4c8d5e3 100644 --- a/include/boost/beast/core/detail/sha1.hpp +++ b/include/boost/beast/core/detail/sha1.hpp @@ -11,10 +11,7 @@ #define BOOST_BEAST_DETAIL_SHA1_HPP #include - -#include #include -#include // Based on https://github.com/vog/sha1 /* diff --git a/include/boost/beast/core/detail/sha1.ipp b/include/boost/beast/core/detail/sha1.ipp index 8d739f34..f38be7d1 100644 --- a/include/boost/beast/core/detail/sha1.ipp +++ b/include/boost/beast/core/detail/sha1.ipp @@ -12,7 +12,6 @@ #include -#include #include #include diff --git a/include/boost/beast/core/impl/static_buffer.hpp b/include/boost/beast/core/impl/static_buffer.hpp index 7012eaf0..ae4f53c1 100644 --- a/include/boost/beast/core/impl/static_buffer.hpp +++ b/include/boost/beast/core/impl/static_buffer.hpp @@ -11,10 +11,6 @@ #define BOOST_BEAST_IMPL_STATIC_BUFFER_HPP #include -#include -#include -#include -#include #include namespace boost { diff --git a/include/boost/beast/core/impl/static_buffer.ipp b/include/boost/beast/core/impl/static_buffer.ipp index 36f9d3ab..b87d704b 100644 --- a/include/boost/beast/core/impl/static_buffer.ipp +++ b/include/boost/beast/core/impl/static_buffer.ipp @@ -13,9 +13,6 @@ #include #include #include -#include -#include -#include #include namespace boost { diff --git a/include/boost/beast/core/static_buffer.hpp b/include/boost/beast/core/static_buffer.hpp index 1e442371..c4ff534f 100644 --- a/include/boost/beast/core/static_buffer.hpp +++ b/include/boost/beast/core/static_buffer.hpp @@ -13,11 +13,7 @@ #include #include #include -#include -#include -#include #include -#include namespace boost { namespace beast { @@ -134,7 +130,7 @@ public: BOOST_BEAST_DECL const_buffers_type data() const noexcept; - + /// Returns a constant buffer sequence representing the readable bytes const_buffers_type cdata() const noexcept @@ -148,7 +144,7 @@ public: data() noexcept; /** Returns a mutable buffer sequence representing writable bytes. - + Returns a mutable buffer sequence representing the writable bytes containing exactly `n` bytes of storage. Memory may be reallocated as needed.