summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
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 2ca94390e5..61ccd355a1 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -3651,38 +3651,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.begin(), param.second.end(), vobj) == param.second.end());
- found = found || vector_replace_with_last(param.second, vobj);
- }
- }
-
- for (auto& skin_pair : mLoadingSkins)
- {
- llassert(std::find(skin_pair.second.begin(), skin_pair.second.end(), vobj) == skin_pair.second.end());
- found = found || vector_replace_with_last(skin_pair.second, vobj);
- }
-
- return found;
-}
-#endif
-
void LLMeshRepository::unregisterMesh(LLVOVolume* vobj, const LLVolumeParams& mesh_params, S32 detail)
{
LL_PROFILE_ZONE_SCOPED_CATEGORY_VOLUME;