Remove redundant MySQL error message in ClearRaidLeader

This commit is contained in:
Akkadius 2015-01-24 22:42:51 -06:00
parent e7b4a38e69
commit 9c92cbb780

View File

@ -3567,12 +3567,8 @@ void Database::ClearRaidLeader(uint32 gid, uint32 rid)
return; return;
} }
std::string query = StringFormat("DELETE from raid_leaders where gid = %lu and rid = %lu", std::string query = StringFormat("DELETE from raid_leaders where gid = %lu and rid = %lu", (unsigned long)gid, (unsigned long)rid);
(unsigned long)gid, (unsigned long)rid); QueryDatabase(query);
auto results = QueryDatabase(query);
if (!results.Success())
std::cout << "Unable to clear raid leader: " << results.ErrorMessage() << std::endl;
} }
bool Database::VerifyInstanceAlive(uint16 instance_id, uint32 char_id) bool Database::VerifyInstanceAlive(uint16 instance_id, uint32 char_id)