From 26d2ae416efd64e4375a5e6e88d543aa0d86b283 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 16 Nov 2025 22:37:13 -0800 Subject: [PATCH] delete unused arguments --- src/HTTPServer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HTTPServer.cc b/src/HTTPServer.cc index 282e8bc2..f6d4aa5f 100644 --- a/src/HTTPServer.cc +++ b/src/HTTPServer.cc @@ -518,7 +518,7 @@ HTTPServer::HTTPServer(shared_ptr state) } }); - this->router.add(HTTPRequest::Method::GET, "/y/teams", [this](ArgsT&& params) -> RetT { + this->router.add(HTTPRequest::Method::GET, "/y/teams", [this](ArgsT&&) -> RetT { auto res = make_shared(phosg::JSON::dict()); for (const auto& it : this->state->team_index->all()) { res->emplace(std::format("{}", it->team_id), it->json()); @@ -580,7 +580,7 @@ HTTPServer::HTTPServer(shared_ptr state) co_return this->state->config_json; }); - this->router.add(HTTPRequest::Method::GET, "/y/summary", [this, generate_server_info_json](ArgsT&& args) -> RetT { + this->router.add(HTTPRequest::Method::GET, "/y/summary", [this, generate_server_info_json](ArgsT&&) -> RetT { auto clients_json = phosg::JSON::list(); for (const auto& c : this->state->game_server->all_clients()) { auto p = c->character_file(false, false); @@ -710,7 +710,7 @@ HTTPServer::HTTPServer(shared_ptr state) } }); - this->router.add(HTTPRequest::Method::GET, "/y/data/quests", [this](ArgsT&& args) -> RetT { + this->router.add(HTTPRequest::Method::GET, "/y/data/quests", [this](ArgsT&&) -> RetT { co_return co_await call_on_thread_pool(*this->state->thread_pool, [&]() -> shared_ptr { return make_shared(this->state->quest_index->json()); });