mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Tidy up an unused function
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user