Core/Loading: Drop the field script_version from the table version.

It serves no purpose (and one step closer to remove EAI from the core/db)
This commit is contained in:
Nay
2011-10-28 23:00:00 +01:00
parent 864635b74b
commit c19a6c7e31
7 changed files with 6 additions and 33 deletions

View File

@@ -295,7 +295,6 @@ void ScriptMgr::Unload()
void ScriptMgr::LoadDatabase()
{
sScriptSystemMgr->LoadVersion();
sScriptSystemMgr->LoadScriptTexts();
sScriptSystemMgr->LoadScriptTextsCustom();
sScriptSystemMgr->LoadScriptWaypoints();

View File

@@ -23,25 +23,6 @@
ScriptPointVector const SystemMgr::_empty;
void SystemMgr::LoadVersion()
{
// Get Version information
QueryResult result = WorldDatabase.Query("SELECT script_version FROM version LIMIT 1");
if (result)
{
Field* fields = result->Fetch();
sLog->outString("TSCR: Database version is: %s", fields[0].GetCString());
sLog->outString();
}
else
{
sLog->outError("TSCR: Missing `version`.`script_version` information.");
sLog->outString();
}
}
void SystemMgr::LoadScriptTexts()
{
sLog->outString("TSCR: Loading Script Texts...");

View File

@@ -64,7 +64,6 @@ class SystemMgr
typedef UNORDERED_MAP<uint32, ScriptPointVector> PointMoveMap;
//Database
void LoadVersion();
void LoadScriptTexts();
void LoadScriptTextsCustom();
void LoadScriptWaypoints();