Core/Cleanup: Drop some unused code.

Closes #1010, #581, and #248
This commit is contained in:
laly
2011-03-26 03:28:59 +02:00
committed by Shocker
parent 30d6b0fcd6
commit b9af020e72
3 changed files with 9 additions and 23 deletions
@@ -805,11 +805,6 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputa
m_summon_y = 0.0f;
m_summon_z = 0.0f;
//Default movement to run mode
//m_unit_movement_flags = 0;
m_AreaID = 0;
m_mover = this;
m_movedPlayer = this;
m_seer = this;
@@ -6770,11 +6765,6 @@ void Player::CheckAreaExploreAndOutdoor()
if (isInFlight())
return;
if (!m_AreaID)
m_AreaID = GetAreaId();
if (m_AreaID != GetAreaId())
m_AreaID = GetAreaId();
bool isOutdoor;
uint16 areaFlag = GetBaseMap()->GetAreaFlag(GetPositionX(),GetPositionY(),GetPositionZ(), &isOutdoor);
-1
View File
@@ -2429,7 +2429,6 @@ class Player : public Unit, public GridObject<Player>
bool isDebugAreaTriggers;
protected:
uint32 m_AreaID;
uint32 m_regenTimerCount;
float m_powerFraction[MAX_POWERS];
uint32 m_contestedPvPTimer;
+2 -5
View File
@@ -252,9 +252,6 @@ int Master::Run()
soap_thread = new ACE_Based::Thread(runnable);
}
uint32 realCurrTime, realPrevTime;
realCurrTime = realPrevTime = getMSTime();
///- Start up freeze catcher thread
if (uint32 freeze_delay = sConfig->GetIntDefault("MaxCoreStuckTime", 0))
{
@@ -385,13 +382,13 @@ bool Master::_StartDB()
}
synch_threads = sConfig->GetIntDefault("WorldDatabase.SynchThreads", 1);
///- Initialise the world database
if (!WorldDatabase.Open(dbstring, async_threads, synch_threads))
{
sLog->outError("Cannot connect to world database %s", dbstring.c_str());
return false;
}
///- Get character database info from configuration file
dbstring = sConfig->GetStringDefault("CharacterDatabaseInfo", "");
if (dbstring.empty())
@@ -434,13 +431,13 @@ bool Master::_StartDB()
}
synch_threads = sConfig->GetIntDefault("LoginDatabase.SynchThreads", 1);
///- Initialise the login database
if (!LoginDatabase.Open(dbstring, async_threads, synch_threads))
{
sLog->outError("Cannot connect to login database %s", dbstring.c_str());
return false;
}
///- Get the realm Id from the configuration file
realmID = sConfig->GetIntDefault("RealmID", 0);
if (!realmID)