aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-12-26 01:38:40 +0100
committerShauren <shauren.trinity@gmail.com>2014-12-26 01:38:40 +0100
commit3c3b42362f19c35467e10923c521a8b93913b40d (patch)
tree1b441ec43742d5ece03d5fbbe6145fd5ba8dd13e /src/server/game/Globals/ObjectMgr.cpp
parentdef2bfc83cadb8a78dcb9a004aab097973dd0cba (diff)
Core/DataStores: Added DB2Manager
* Moved DB2 helpers to new class * Moved hotfix data to hotfixes database and core management functions to DB2Manager class * Updated HotfixNotifyBlob packet
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 16958a2dde8..dd2a1697e6a 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -8507,39 +8507,6 @@ void ObjectMgr::LoadFactionChangeReputations()
TC_LOG_INFO("server.loading", ">> Loaded %u faction change reputation pairs in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
}
-void ObjectMgr::LoadHotfixData()
-{
- uint32 oldMSTime = getMSTime();
-
- QueryResult result = WorldDatabase.Query("SELECT entry, type, UNIX_TIMESTAMP(hotfixDate) FROM hotfix_data");
-
- if (!result)
- {
- TC_LOG_INFO("server.loading", ">> Loaded 0 hotfix info entries. DB table `hotfix_data` is empty.");
- return;
- }
-
- uint32 count = 0;
-
- _hotfixData.reserve(result->GetRowCount());
-
- do
- {
- Field* fields = result->Fetch();
-
- HotfixInfo info;
- info.Entry = fields[0].GetUInt32();
- info.Type = fields[1].GetUInt32();
- info.Timestamp = fields[2].GetUInt64();
- _hotfixData.push_back(info);
-
- ++count;
- }
- while (result->NextRow());
-
- TC_LOG_INFO("server.loading", ">> Loaded %u hotfix info entries in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
-}
-
void ObjectMgr::LoadFactionChangeSpells()
{
uint32 oldMSTime = getMSTime();