mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Removed unused FetchRowMap
This commit is contained in:
parent
2278ec023f
commit
c39eb3ca86
@ -1939,23 +1939,6 @@ void Database::ClearGroupLeader(uint32 gid) {
|
||||
std::cout << "Unable to clear group leader: " << results.ErrorMessage() << std::endl;
|
||||
}
|
||||
|
||||
bool FetchRowMap(MYSQL_RES *result, std::map<std::string,std::string> &rowmap)
|
||||
{
|
||||
MYSQL_FIELD *fields;
|
||||
MYSQL_ROW row;
|
||||
unsigned long num_fields,i;
|
||||
bool retval=false;
|
||||
rowmap.clear();
|
||||
if (result && (num_fields=mysql_num_fields(result)) && (row = mysql_fetch_row(result))!=nullptr && (fields = mysql_fetch_fields(result))!=nullptr) {
|
||||
retval=true;
|
||||
for(i=0;i<num_fields;i++) {
|
||||
rowmap[fields[i].name]=(row[i] ? row[i] : "");
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
uint8 Database::GetAgreementFlag(uint32 acctid)
|
||||
{
|
||||
char* query = nullptr;
|
||||
|
||||
@ -279,5 +279,4 @@ private:
|
||||
void ClearAllRaidDetails();
|
||||
};
|
||||
|
||||
bool FetchRowMap(MYSQL_RES *result, std::map<std::string,std::string> &rowmap);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user