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 <ed.tanous@intel.com>
Change-Id: I252344a4608f7e107bcb273d725b5a484eb7a17d
diff --git a/include/token_authorization_middleware.hpp b/include/token_authorization_middleware.hpp
index e9eb65f..4d7cc08 100644
--- a/include/token_authorization_middleware.hpp
+++ b/include/token_authorization_middleware.hpp
@@ -287,7 +287,7 @@
"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 @@
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)
{