summaryrefslogtreecommitdiff
path: root/deps/recastnavigation/Recast/Source/RecastAlloc.cpp
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2019-08-13 19:08:35 +0200
committerGitHub <noreply@github.com>2019-08-13 19:08:35 +0200
commit10105cab01487cbef761f253725b224f9847e8fb (patch)
treee5bd2387665c021915cd19986dafa7bb18a4fcb9 /deps/recastnavigation/Recast/Source/RecastAlloc.cpp
parent859eaed800c4f6d4b1d4d10f55bfe70828ba8fee (diff)
fix(Core/Deps): Update recastnavigation to last version (#2189)
Note: you need to re-extract the client data files, or download them from: https://github.com/wowgaming/client-data/releases/tag/v7
Diffstat (limited to 'deps/recastnavigation/Recast/Source/RecastAlloc.cpp')
-rw-r--r--deps/recastnavigation/Recast/Source/RecastAlloc.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/deps/recastnavigation/Recast/Source/RecastAlloc.cpp b/deps/recastnavigation/Recast/Source/RecastAlloc.cpp
index 453b5fa6a6..bdc366116e 100644
--- a/deps/recastnavigation/Recast/Source/RecastAlloc.cpp
+++ b/deps/recastnavigation/Recast/Source/RecastAlloc.cpp
@@ -58,29 +58,3 @@ void rcFree(void* ptr)
if (ptr)
sRecastFreeFunc(ptr);
}
-
-/// @class rcIntArray
-///
-/// While it is possible to pre-allocate a specific array size during
-/// construction or by using the #resize method, certain methods will
-/// automatically resize the array as needed.
-///
-/// @warning The array memory is not initialized to zero when the size is
-/// manually set during construction or when using #resize.
-
-/// @par
-///
-/// Using this method ensures the array is at least large enough to hold
-/// the specified number of elements. This can improve performance by
-/// avoiding auto-resizing during use.
-void rcIntArray::doResize(int n)
-{
- if (!m_cap) m_cap = n;
- while (m_cap < n) m_cap *= 2;
- int* newData = (int*)rcAlloc(m_cap*sizeof(int), RC_ALLOC_TEMP);
- rcAssert(newData);
- if (m_size && newData) memcpy(newData, m_data, m_size*sizeof(int));
- rcFree(m_data);
- m_data = newData;
-}
-