summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-09-19 17:34:28 -0700
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-05 20:45:57 +0200
commit24dccc4015a291b819c2a4bb0451c8898e5a3cc2 (patch)
tree92233b41033a3aea95d043c41d7d52bc6568d088 /indra/newview/llmeshrepository.cpp
parent4f70d8c830c6213bafcbf40f5ff7eb72840739cc (diff)
secondlife/viewer#2623: Remove assert
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r--indra/newview/llmeshrepository.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index c3513229c6..8ee5a4f028 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -4271,38 +4271,6 @@ S32 LLMeshRepository::update()
return static_cast<S32>(size);
}
-#ifdef SHOW_ASSERT
-// Brute-force remove the object from all loading queues. Returns true if
-// something was removed.
-// This function is used in a debug assert to ensure unregisterMesh and
-// unregisterSkinInfo are called as intended.
-// *TODO: Consider removing at some point if we feel confident about the code
-// working as intended.
-bool LLMeshRepository::forceUnregisterMesh(LLVOVolume* vobj)
-{
- LL_PROFILE_ZONE_SCOPED_CATEGORY_VOLUME;
-
- bool found = false;
-
- for (auto& lod : mLoadingMeshes)
- {
- for (auto& param : lod)
- {
- llassert(std::find(param.second.mVolumes.begin(), param.second.mVolumes.end(), vobj) == param.second.mVolumes.end());
- found = found || vector_replace_with_last(param.second.mVolumes, vobj);
- }
- }
-
- for (auto& skin_pair : mLoadingSkins)
- {
- llassert(std::find(skin_pair.mVolumes.second.begin(), skin_pair.mVolumes.second.end(), vobj) == skin_pair.mVolumes.second.end());
- found = found || vector_replace_with_last(skin_pair.second.mVolumes, vobj);
- }
-
- return found;
-}
-#endif
-
void LLMeshRepository::unregisterMesh(LLVOVolume* vobj, const LLVolumeParams& mesh_params, S32 detail)
{
LL_PROFILE_ZONE_SCOPED_CATEGORY_VOLUME;