From bf2523b19072e989d77e89776b35511508bf810e Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 1 Mar 2019 11:02:37 -0800 Subject: [PATCH] Tidy up an unused function --- CHANGELOG.md | 6 +++ .../server-flex/advanced_server_flex.cpp | 39 +++++-------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54d0ab1a..09637b93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 225: + +* Tidy up an unused function + +-------------------------------------------------------------------------------- + Version 224: * Remove extraneous error check in advanced-server-flex diff --git a/example/advanced/server-flex/advanced_server_flex.cpp b/example/advanced/server-flex/advanced_server_flex.cpp index 3f379b23..b6446e59 100644 --- a/example/advanced/server-flex/advanced_server_flex.cpp +++ b/example/advanced/server-flex/advanced_server_flex.cpp @@ -259,7 +259,6 @@ class websocket_session beast::flat_buffer buffer_; -public: // Start the asynchronous operation template void @@ -348,6 +347,16 @@ public: // Do another read do_read(); } + +public: + // Start the asynchronous operation + template + void + run(http::request> req) + { + // Accept the WebSocket upgrade request + do_accept(std::move(req)); + } }; //------------------------------------------------------------------------------ @@ -374,15 +383,6 @@ public: { return ws_; } - - // Start the asynchronous operation - template - void - run(http::request> req) - { - // Accept the WebSocket upgrade request - do_accept(std::move(req)); - } }; //------------------------------------------------------------------------------ @@ -404,15 +404,6 @@ public: { } - // Start the session - template - void - run(http::request> req) - { - // Accept the WebSocket upgrade request - do_accept(std::move(req)); - } - // Called by the base class websocket::stream< beast::ssl_stream>& @@ -420,16 +411,6 @@ public: { return ws_; } - -private: - void - on_shutdown(beast::error_code ec) - { - if(ec) - return fail(ec, "shutdown"); - - // At this point the connection is closed gracefully - } }; //------------------------------------------------------------------------------