From fd4859a7fba462b9762ac948702a1e768c66848f Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Wed, 23 Oct 2019 13:31:38 -0700 Subject: [PATCH] Remove unused wildcard captures Considering that wild card captures are now known to be difficult to maintain, remove a couple instances of them from app. They are no longer used as a capture, so can be safely removed with no effect. It's likely the compiler is doing this already. Tested: No functional change. Code compiles. Signed-off-by: Ed Tanous Change-Id: I252344a4608f7e107bcb273d725b5a484eb7a17d --- include/token_authorization_middleware.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/token_authorization_middleware.hpp b/include/token_authorization_middleware.hpp index e9eb65ffcd..4d7cc08d17 100644 --- a/include/token_authorization_middleware.hpp +++ b/include/token_authorization_middleware.hpp @@ -287,7 +287,7 @@ template void requestRoutes(Crow& app) "auth routes"); BMCWEB_ROUTE(app, "/login") .methods( - "POST"_method)([&](const crow::Request& req, crow::Response& res) { + "POST"_method)([](const crow::Request& req, crow::Response& res) { std::string_view contentType = req.getHeaderValue("content-type"); std::string_view username; std::string_view password; @@ -448,7 +448,7 @@ template void requestRoutes(Crow& app) BMCWEB_ROUTE(app, "/logout") .methods("POST"_method)( - [&](const crow::Request& req, crow::Response& res) { + [](const crow::Request& req, crow::Response& res) { auto& session = req.session; if (session != nullptr) {