diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b46acd..55c140fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 -------------------------------------------------------------------------------- diff --git a/test/beast/http/write.cpp b/test/beast/http/write.cpp index a043be74..c8bd6b5c 100644 --- a/test/beast/http/write.cpp +++ b/test/beast/http/write.cpp @@ -757,7 +757,6 @@ public: } { auto m = m0; - error_code ec; response_serializer
sr{m}; sr.split(true); for(;;) @@ -771,7 +770,6 @@ public: } { auto m = m0; - error_code ec; response_serializer sr{m}; sr.split(true); for(;;) @@ -804,7 +802,6 @@ public: } { auto m = m0; - error_code ec; response_serializer sr{m}; sr.split(true); for(;;) @@ -818,7 +815,6 @@ public: } { auto m = m0; - error_code ec; response_serializer 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 = diff --git a/test/beast/websocket/read1.cpp b/test/beast/websocket/read1.cpp index 97ae9191..65fdfdad 100644 --- a/test/beast/websocket/read1.cpp +++ b/test/beast/websocket/read1.cpp @@ -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); diff --git a/test/beast/websocket/read2.cpp b/test/beast/websocket/read2.cpp index 4870033a..e363ffc4 100644 --- a/test/beast/websocket/read2.cpp +++ b/test/beast/websocket/read2.cpp @@ -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