From 8441ffda3130e90ce073037b6b5e88044677335c Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Thu, 21 Aug 2014 11:52:15 -0700 Subject: [PATCH] GetAccountInfoForLogin removed, unused, unsupported --- zone/zonedb.cpp | 25 ------------------------- zone/zonedb.h | 2 -- 2 files changed, 27 deletions(-) diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index b76fd6c5f..b7e4c5339 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -1729,31 +1729,6 @@ bool ZoneDatabase::SetZoneTZ(uint32 zoneid, uint32 version, uint32 tz) { return results.RowsAffected() == 1; } -/* - solar: this is never actually called, client_process starts an async query - instead and uses GetAccountInfoForLogin_result to process it.. - */ -bool ZoneDatabase::GetAccountInfoForLogin(uint32 account_id, int16* admin, char* account_name, uint32* lsaccountid, uint8* gmspeed, bool* revoked,bool* gmhideme) { - char errbuf[MYSQL_ERRMSG_SIZE]; - char *query = 0; - MYSQL_RES *result; - - if (RunQuery(query, MakeAnyLenString(&query, "SELECT status, name, lsaccount_id, gmspeed, revoked, hideme FROM account WHERE id=%i", account_id), errbuf, &result)) { - safe_delete_array(query); - bool ret = GetAccountInfoForLogin_result(result, admin, account_name, lsaccountid, gmspeed, revoked,gmhideme); - mysql_free_result(result); - return ret; - } - else - { - std::cerr << "Error in GetAccountInfoForLogin query '" << query << "' " << errbuf << std::endl; - safe_delete_array(query); - return false; - } - - return false; -} - void ZoneDatabase::RefreshGroupFromDB(Client *c){ if(!c){ return; diff --git a/zone/zonedb.h b/zone/zonedb.h index 3a7881d44..ae58bb596 100644 --- a/zone/zonedb.h +++ b/zone/zonedb.h @@ -246,8 +246,6 @@ public: /* * General Character Related Stuff */ - bool GetAccountInfoForLogin(uint32 account_id, int16* admin = 0, char* account_name = 0, - uint32* lsaccountid = 0, uint8* gmspeed = 0, bool* revoked = 0, bool* gmhideme = 0); bool GetAccountInfoForLogin_result(MYSQL_RES* result, int16* admin = 0, char* account_name = 0, uint32* lsaccountid = 0, uint8* gmspeed = 0, bool* revoked = 0, bool* gmhideme = nullptr, uint32* account_creation = 0);