Tidy up an unused function

This commit is contained in:
Vinnie Falco
2019-03-01 11:02:37 -08:00
parent a3f0ea3573
commit bf2523b190
2 changed files with 16 additions and 29 deletions

View File

@@ -1,3 +1,9 @@
Version 225:
* Tidy up an unused function
--------------------------------------------------------------------------------
Version 224:
* Remove extraneous error check in advanced-server-flex

View File

@@ -259,7 +259,6 @@ class websocket_session
beast::flat_buffer buffer_;
public:
// Start the asynchronous operation
template<class Body, class Allocator>
void
@@ -348,6 +347,16 @@ public:
// Do another read
do_read();
}
public:
// Start the asynchronous operation
template<class Body, class Allocator>
void
run(http::request<Body, http::basic_fields<Allocator>> req)
{
// Accept the WebSocket upgrade request
do_accept(std::move(req));
}
};
//------------------------------------------------------------------------------
@@ -374,15 +383,6 @@ public:
{
return ws_;
}
// Start the asynchronous operation
template<class Body, class Allocator>
void
run(http::request<Body, http::basic_fields<Allocator>> req)
{
// Accept the WebSocket upgrade request
do_accept(std::move(req));
}
};
//------------------------------------------------------------------------------
@@ -404,15 +404,6 @@ public:
{
}
// Start the session
template<class Body, class Allocator>
void
run(http::request<Body, http::basic_fields<Allocator>> req)
{
// Accept the WebSocket upgrade request
do_accept(std::move(req));
}
// Called by the base class
websocket::stream<
beast::ssl_stream<beast::tcp_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
}
};
//------------------------------------------------------------------------------