GetAccountInfoForLogin removed, unused, unsupported

This commit is contained in:
Arthur Ice 2014-08-21 11:52:15 -07:00
parent e79747c919
commit 8441ffda31
2 changed files with 0 additions and 27 deletions

View File

@ -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;

View File

@ -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);