mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +02:00
Tidy up an unused function
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 225:
|
||||||
|
|
||||||
|
* Tidy up an unused function
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 224:
|
Version 224:
|
||||||
|
|
||||||
* Remove extraneous error check in advanced-server-flex
|
* Remove extraneous error check in advanced-server-flex
|
||||||
|
@@ -259,7 +259,6 @@ class websocket_session
|
|||||||
|
|
||||||
beast::flat_buffer buffer_;
|
beast::flat_buffer buffer_;
|
||||||
|
|
||||||
public:
|
|
||||||
// Start the asynchronous operation
|
// Start the asynchronous operation
|
||||||
template<class Body, class Allocator>
|
template<class Body, class Allocator>
|
||||||
void
|
void
|
||||||
@@ -348,6 +347,16 @@ public:
|
|||||||
// Do another read
|
// Do another read
|
||||||
do_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_;
|
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
|
// Called by the base class
|
||||||
websocket::stream<
|
websocket::stream<
|
||||||
beast::ssl_stream<beast::tcp_stream>>&
|
beast::ssl_stream<beast::tcp_stream>>&
|
||||||
@@ -420,16 +411,6 @@ public:
|
|||||||
{
|
{
|
||||||
return ws_;
|
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