From 840cc8f9d6bcde5945dd53b54b2db08fc1ff8853 Mon Sep 17 00:00:00 2001 From: Richard Hodges Date: Mon, 1 Jun 2020 20:07:29 +0200 Subject: [PATCH] Remove websocket::role_type (API Change): websocket::role_type has been removed. Users should use beast::role_type instead. refs #1934 --- CHANGELOG.md | 3 +++ include/boost/beast/websocket/role.hpp | 35 -------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 include/boost/beast/websocket/role.hpp diff --git a/CHANGELOG.md b/CHANGELOG.md index bf7ce14c..08e6042b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ +* Remove websocket::role_type (API Change) * Remove accept_ex and handshake_ex variants (API Change) * Rename to BOOST_BEAST_ALLOW_DEPRECATED (API Change) API Changes: +* websocket::role_type has been removed. Users should use beast::role_type instead. + * The following deprecated functions have been removed: - websocket::async_accept_ex - websocket::async_handshake_ex diff --git a/include/boost/beast/websocket/role.hpp b/include/boost/beast/websocket/role.hpp deleted file mode 100644 index 1efb2eb8..00000000 --- a/include/boost/beast/websocket/role.hpp +++ /dev/null @@ -1,35 +0,0 @@ -// -// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) -// -// Distributed under the Boost Software License, Version 1.0. (See accompanying -// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// Official repository: https://github.com/boostorg/beast -// - -#ifndef BOOST_BEAST_WEBSOCKET_ROLE_HPP -#define BOOST_BEAST_WEBSOCKET_ROLE_HPP - -#include - -#ifndef BOOST_BEAST_ALLOW_DEPRECATED - -#error This file is deprecated interface, #define BOOST_BEAST_ALLOW_DEPRECATED to allow it - -#else - -#include - -namespace boost { -namespace beast { -namespace websocket { - -using role_type = beast::role_type; - -} // websocket -} // beast -} // boost - -#endif - -#endif