diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-06-19 18:29:49 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-06-19 18:29:49 -0700 |
commit | 37f3a016fcc8b1cf92cdb4c546b1ab25546a527a (patch) | |
tree | 41b7867f89b422a421b43ef4fa806e45e4b3b380 /indra/newview/llpathfindingmanager.cpp | |
parent | f5a5e687b77b70958e2ebb5a21ae4c4de2bc1bd8 (diff) |
Removing unused methods and members from the pathfinding manager.
Diffstat (limited to 'indra/newview/llpathfindingmanager.cpp')
-rw-r--r-- | indra/newview/llpathfindingmanager.cpp | 74 |
1 files changed, 1 insertions, 73 deletions
diff --git a/indra/newview/llpathfindingmanager.cpp b/indra/newview/llpathfindingmanager.cpp index 6dffe2f459..912b264c41 100644 --- a/indra/newview/llpathfindingmanager.cpp +++ b/indra/newview/llpathfindingmanager.cpp @@ -286,26 +286,10 @@ private: LLPathfindingManager::LLPathfindingManager() : LLSingleton<LLPathfindingManager>(), mNavMeshMap(), - mCrossingSlot(), - mAgentStateSignal(), - mNavMeshSlot() + mAgentStateSignal() { } -void LLPathfindingManager::onRegionBoundaryCrossed() -{ - if (mNavMeshSlot.connected()) - { - mNavMeshSlot.disconnect(); - } - LLViewerRegion *currentRegion = getCurrentRegion(); - if (currentRegion != NULL) - { - mNavMeshSlot = registerNavMeshListenerForRegion(currentRegion, boost::bind(&LLPathfindingManager::handleNavMeshStatus, this, _1, _2)); - requestGetNavMeshForRegion(currentRegion, true); - } -} - LLPathfindingManager::~LLPathfindingManager() { quitSystem(); @@ -317,36 +301,10 @@ void LLPathfindingManager::initSystem() { LLPathingLib::initSystem(); } - - if ( !mCrossingSlot.connected() ) - { - mCrossingSlot = LLEnvManagerNew::getInstance()->setRegionChangeCallback(boost::bind(&LLPathfindingManager::onRegionBoundaryCrossed, this)); - } - - if (mNavMeshSlot.connected()) - { - mNavMeshSlot.disconnect(); - } - LLViewerRegion *currentRegion = getCurrentRegion(); - if (currentRegion != NULL) - { - mNavMeshSlot = registerNavMeshListenerForRegion(currentRegion, boost::bind(&LLPathfindingManager::handleNavMeshStatus, this, _1, _2)); - requestGetNavMeshForRegion(currentRegion, true); - } } void LLPathfindingManager::quitSystem() { - if (mNavMeshSlot.connected()) - { - mNavMeshSlot.disconnect(); - } - - if (mCrossingSlot.connected()) - { - mCrossingSlot.disconnect(); - } - if (LLPathingLib::getInstance() != NULL) { LLPathingLib::quitSystem(); @@ -741,36 +699,6 @@ LLViewerRegion *LLPathfindingManager::getCurrentRegion() const return gAgent.getRegion(); } -void LLPathfindingManager::handleNavMeshStatus(LLPathfindingNavMesh::ENavMeshRequestStatus pRequestStatus, const LLPathfindingNavMeshStatus &pNavMeshStatus) -{ - if (!pNavMeshStatus.isValid()) - { - llinfos << "STINSON DEBUG: navmesh status is invalid" << llendl; - } - else - { - switch (pNavMeshStatus.getStatus()) - { - case LLPathfindingNavMeshStatus::kPending : - llinfos << "STINSON DEBUG: navmesh status is kPending" << llendl; - break; - case LLPathfindingNavMeshStatus::kBuilding : - llinfos << "STINSON DEBUG: navmesh status is kBuilding" << llendl; - break; - case LLPathfindingNavMeshStatus::kComplete : - llinfos << "STINSON DEBUG: navmesh status is kComplete" << llendl; - break; - case LLPathfindingNavMeshStatus::kRepending : - llinfos << "STINSON DEBUG: navmesh status is kRepending" << llendl; - break; - default : - llinfos << "STINSON DEBUG: navmesh status is default" << llendl; - llassert(0); - break; - } - } -} - #if 0 void LLPathfindingManager::displayNavMeshRebakePanel() { |