From 164bd83793de8fef1bb765550000aa053c0a1a38 Mon Sep 17 00:00:00 2001 From: "Tim.Ebbeke" Date: Mon, 23 Oct 2023 17:55:39 +0200 Subject: [PATCH] Removed unused lambda captures. --- include/roar/client.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/roar/client.hpp b/include/roar/client.hpp index 1fa87876..3fb52639 100644 --- a/include/roar/client.hpp +++ b/include/roar/client.hpp @@ -248,7 +248,7 @@ namespace Roar socket, *buffer_, context->response.response(), - [weak = weak_from_this(), buffer = this->buffer_, d = std::move(d), timeout, context]( + [weak = weak_from_this(), buffer = this->buffer_, d = std::move(d), context]( boost::beast::error_code ec, std::size_t) mutable { auto self = weak.lock(); if (!self) @@ -459,12 +459,12 @@ namespace Roar withLowerLayerDo([timeout](auto& socket) { socket.expires_after(timeout); }); - withStreamDo([this, request, &d, timeout](auto& socket) mutable { + withStreamDo([this, request, &d](auto& socket) mutable { std::shared_ptr> requestPtr = std::make_shared>(std::move(request)); boost::beast::http::async_write( socket, *requestPtr, - [weak = weak_from_this(), d = std::move(d), requestPtr, timeout]( + [weak = weak_from_this(), d = std::move(d), requestPtr]( boost::beast::error_code ec, std::size_t) mutable { auto self = weak.lock(); if (!self)