From 491b358e286aacbf3f486a2d0926869655f36d7d Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Fri, 17 Mar 2023 19:20:56 -0400 Subject: [PATCH] [Cleanup] Remove UpdateLoginserverWorldAdminAccountPasswordById() from account_management.cpp (#3115) # Notes - This is unused. --- loginserver/account_management.cpp | 21 --------------------- loginserver/account_management.h | 10 ---------- 2 files changed, 31 deletions(-) diff --git a/loginserver/account_management.cpp b/loginserver/account_management.cpp index dba6e25d8..b95000ed1 100644 --- a/loginserver/account_management.cpp +++ b/loginserver/account_management.cpp @@ -260,27 +260,6 @@ bool AccountManagement::UpdateLoginserverWorldAdminAccountPasswordByName( return updated_account; } -/** - * @param in_account_id - * @param in_account_password_hash - */ -bool AccountManagement::UpdateLoginserverWorldAdminAccountPasswordById( - uint32 in_account_id, - const std::string &in_account_password_hash -) -{ - bool updated_account = server.db->UpdateLoginWorldAdminAccountPassword(in_account_id, in_account_password_hash); - - LogInfo( - "[{}] account_name [{}] status [{}]", - __func__, - in_account_id, - (updated_account ? "success" : "failed") - ); - - return updated_account; -} - constexpr int REQUEST_TIMEOUT_MS = 1500; /** diff --git a/loginserver/account_management.h b/loginserver/account_management.h index 2c92af69d..190c26437 100644 --- a/loginserver/account_management.h +++ b/loginserver/account_management.h @@ -80,16 +80,6 @@ public: const std::string &in_account_password ); - /** - * @param in_account_id - * @param in_account_password_hash - * @return - */ - static bool UpdateLoginserverWorldAdminAccountPasswordById( - uint32 in_account_id, - const std::string &in_account_password_hash - ); - static uint32 HealthCheckUserLogin(); };