Remove some unused variables

fix #1197
This commit is contained in:
Joe Loser
2018-07-17 19:20:23 -04:00
committed by Vinnie Falco
parent e0f4c1d769
commit 283c9f26f3
5 changed files with 7 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ Version 179:
* Use the exchange() idiom in move constructors
* Most members of std::allocate are deprecated in C++17
* Remove some unused variables
--------------------------------------------------------------------------------

View File

@@ -757,7 +757,6 @@ public:
}
{
auto m = m0;
error_code ec;
response_serializer<Body, fields> sr{m};
sr.split(true);
for(;;)
@@ -771,7 +770,6 @@ public:
}
{
auto m = m0;
error_code ec;
response_serializer<Body, fields> sr{m};
sr.split(true);
for(;;)
@@ -804,7 +802,6 @@ public:
}
{
auto m = m0;
error_code ec;
response_serializer<Body, fields> sr{m};
sr.split(true);
for(;;)
@@ -818,7 +815,6 @@ public:
}
{
auto m = m0;
error_code ec;
response_serializer<Body, fields> sr{m};
sr.split(true);
for(;;)
@@ -895,7 +891,7 @@ public:
struct const_body_writer
{
struct value_type{};
struct writer
{
using const_buffers_type =
@@ -926,7 +922,7 @@ public:
struct mutable_body_writer
{
struct value_type{};
struct writer
{
using const_buffers_type =

View File

@@ -394,7 +394,6 @@ public:
w.handshake(ws, "localhost", "/");
ws.next_layer().append(s);
static_buffer<1> b;
error_code ec;
try
{
w.read(ws, b);

View File

@@ -237,7 +237,7 @@ public:
ws.read(b, ec);
BEAST_EXPECT(ec);
};
// chopped frame header
{
echo_server es{log};
@@ -249,7 +249,6 @@ public:
"\x81\x7e\x01");
std::size_t count = 0;
std::string const s(257, '*');
error_code ec;
multi_buffer b;
ws.async_read(b,
[&](error_code ec, std::size_t)
@@ -324,7 +323,6 @@ public:
ws.next_layer().append(
"\x89\x02*");
std::size_t count = 0;
error_code ec;
multi_buffer b;
ws.async_read(b,
[&](error_code ec, std::size_t)
@@ -354,7 +352,7 @@ public:
{
void operator()(error_code, std::size_t) {}
};
char buf[32];
stream<test::stream> ws{ioc_};
stream<test::stream>::read_some_op<
@@ -371,7 +369,7 @@ public:
{
void operator()(error_code, std::size_t) {}
};
multi_buffer b;
stream<test::stream> ws{ioc_};
stream<test::stream>::read_op<

View File

@@ -452,7 +452,6 @@ public:
doFailLoop([&](test::fail_count& fc)
{
echo_server es{log};
error_code ec;
boost::asio::io_context ioc;
stream<test::stream> ws{ioc, fc};
ws.next_layer().connect(es.stream());
@@ -485,7 +484,6 @@ public:
doFailLoop([&](test::fail_count& fc)
{
echo_server es{log};
error_code ec;
boost::asio::io_context ioc;
stream<test::stream> ws{ioc, fc};
ws.next_layer().connect(es.stream());
@@ -622,7 +620,7 @@ public:
{
void operator()(error_code) {}
};
char buf[32];
stream<test::stream> ws{ioc_};
stream<test::stream>::write_some_op<