From 58704fa140ab8dfd0d6daf2d8b822734c92e7958 Mon Sep 17 00:00:00 2001 From: Itms Date: Sat, 24 Sep 2016 15:21:20 +0000 Subject: [PATCH] Remove a function relying on systems that are not optimized at all. This function is not actually used by Petra. If it is needed at some point, this map should be handled and updated the same way as the passability map and territory map are. Refs #4191 This was SVN commit r18760. --- source/simulation2/components/CCmpAIManager.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source/simulation2/components/CCmpAIManager.cpp b/source/simulation2/components/CCmpAIManager.cpp index f2c5cf1675..b660e2fd5b 100644 --- a/source/simulation2/components/CCmpAIManager.cpp +++ b/source/simulation2/components/CCmpAIManager.cpp @@ -225,7 +225,6 @@ public: m_ScriptInterface->RegisterFunction("ForceGC"); m_ScriptInterface->RegisterFunction("ComputePath"); - m_ScriptInterface->RegisterFunction("GetConnectivityGrid"); m_ScriptInterface->RegisterFunction, u32, u32, u32, CAIWorker::DumpImage>("DumpImage"); } @@ -323,18 +322,6 @@ public: waypoints.emplace_back(wp.x, wp.z); } - static JS::Value GetConnectivityGrid(ScriptInterface::CxPrivate* pCxPrivate, pass_class_t passClass) - { - ENSURE(pCxPrivate->pCBData); - CAIWorker* self = static_cast (pCxPrivate->pCBData); - JSContext* cx(self->m_ScriptInterface->GetContext()); - JSAutoRequest rq(cx); - - JS::RootedValue retVal(cx); - self->m_ScriptInterface->ToJSVal >(cx, &retVal, self->m_LongPathfinder.GetConnectivityGrid(passClass)); - return retVal; - } - static void ForceGC(ScriptInterface::CxPrivate* pCxPrivate) { PROFILE3("AI compute GC");