summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-06-19 18:29:49 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-06-19 18:29:49 -0700
commit37f3a016fcc8b1cf92cdb4c546b1ab25546a527a (patch)
tree41b7867f89b422a421b43ef4fa806e45e4b3b380 /indra
parentf5a5e687b77b70958e2ebb5a21ae4c4de2bc1bd8 (diff)
Removing unused methods and members from the pathfinding manager.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpathfindingmanager.cpp74
-rw-r--r--indra/newview/llpathfindingmanager.h9
2 files changed, 3 insertions, 80 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()
{
diff --git a/indra/newview/llpathfindingmanager.h b/indra/newview/llpathfindingmanager.h
index 21467a0cf8..2457c18309 100644
--- a/indra/newview/llpathfindingmanager.h
+++ b/indra/newview/llpathfindingmanager.h
@@ -95,7 +95,6 @@ public:
void handleNavMeshRebakeResult( const LLSD &pContent );
void handleNavMeshRebakeError( U32 pStatus, const std::string &pReason, const std::string &pURL );
void triggerNavMeshRebuild();
- void onRegionBoundaryCrossed();
void requestGetAgentState();
protected:
@@ -125,8 +124,6 @@ private:
std::string getCapabilityURLForRegion(LLViewerRegion *pRegion, const std::string &pCapabilityName) const;
LLViewerRegion *getCurrentRegion() const;
- void handleNavMeshStatus(LLPathfindingNavMesh::ENavMeshRequestStatus pRequestStatus, const LLPathfindingNavMeshStatus &pNavMeshStatus);
-
#if 0
void displayNavMeshRebakePanel();
void hideNavMeshRebakePanel();
@@ -134,10 +131,8 @@ private:
void handleAgentStateResult(const LLSD &pContent );
void handleAgentStateError(U32 pStatus, const std::string &pReason, const std::string &pURL);
- NavMeshMap mNavMeshMap;
- agent_state_slot_t mCrossingSlot;
- agent_state_signal_t mAgentStateSignal;
- LLPathfindingNavMesh::navmesh_slot_t mNavMeshSlot;
+ NavMeshMap mNavMeshMap;
+ agent_state_signal_t mAgentStateSignal;
};