# HG changeset patch # User Paper # Date 1719347258 14400 # Node ID 7e97c566cce4c71fce8177ef7374e61fc5620ef5 # Parent 6b0768158dcda0081425c3e97dd42a599f1c923c services/kitsu: remove unused parameters in functions diff -r 6b0768158dcd -r 7e97c566cce4 src/services/kitsu.cc --- a/src/services/kitsu.cc Tue Jun 25 11:19:54 2024 -0400 +++ b/src/services/kitsu.cc Tue Jun 25 16:27:38 2024 -0400 @@ -86,10 +86,10 @@ return true; } -static bool RefreshAccessToken(std::string& access_token, const std::string& refresh_token) { +static bool RefreshAccessToken(void) { const nlohmann::json request = { {"grant_type", "refresh_token"}, - {"refresh_token", refresh_token} + {"refresh_token", session.config.auth.kitsu.refresh_token}, }; if (!SendAuthRequest(request)) @@ -104,7 +104,7 @@ auto& auth = session.config.auth.kitsu; if (Time::GetSystemTime() >= session.config.auth.kitsu.access_token_expiration) - if (!RefreshAccessToken(auth.access_token, auth.refresh_token)) + if (!RefreshAccessToken()) return std::nullopt; return auth.access_token;