aboutsummaryrefslogtreecommitdiff
path: root/dep/recastnavigation/Recast/Source/RecastAlloc.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-01-26 19:44:50 +0100
committerShauren <shauren.trinity@gmail.com>2021-11-22 00:17:11 +0100
commitcb8b6370612e6684b3b3fbdb4a08f8ec21d51f3e (patch)
tree5c92922f659b434a759d755eb860d3dfe3e7a9ad /dep/recastnavigation/Recast/Source/RecastAlloc.cpp
parentb6c9ebec715d7e7d25de909f55abfd88a5941deb (diff)
Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363
Rebuilding mmaps IS required (cherry picked from commit 5ff88ea04aec4677f1c1d669674e5442288a25e3)
Diffstat (limited to 'dep/recastnavigation/Recast/Source/RecastAlloc.cpp')
-rw-r--r--dep/recastnavigation/Recast/Source/RecastAlloc.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/dep/recastnavigation/Recast/Source/RecastAlloc.cpp b/dep/recastnavigation/Recast/Source/RecastAlloc.cpp
index 453b5fa6a60..bdc366116e9 100644
--- a/dep/recastnavigation/Recast/Source/RecastAlloc.cpp
+++ b/dep/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;
-}
-