From 147221c145b9723149b1e7de8548e3fd05dee59e Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Wed, 4 May 2022 23:23:58 -0400
Subject: [PATCH] Dead code patrol

---
 indra/newview/llagent.cpp          |  2 --
 indra/newview/llmeshrepository.cpp | 11 -----------
 indra/newview/llvopartgroup.cpp    |  7 -------
 3 files changed, 20 deletions(-)

diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index b90c3910e5b..0099fc440f2 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -4436,12 +4436,10 @@ void LLAgent::teleportRequest(const LLVector3d& pos_global, const LLVector3& loo
 
 	LLVector3 pos_local;
 	U64 region_handle;
-	bool is_local = false;
 	if (regionp->pointInRegionGlobal(pos_global))
 	{
 		pos_local = regionp->getPosRegionFromGlobal(pos_global);
 		region_handle = regionp->getHandle();
-		is_local = true;
 	}
 	else if (LLViewerRegion* other_regionp = LLWorld::instance().getRegionFromPosGlobal(pos_global))
 	{
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 0c41b86d388..b43138141bd 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -2055,17 +2055,6 @@ EMeshProcessingResult LLMeshRepoThread::physicsShapeReceived(const LLUUID& mesh_
 
 		if (volume->unpackVolumeFaces(data, data_size))
 		{
-			//load volume faces into decomposition buffer
-			S32 vertex_count = 0;
-			S32 index_count = 0;
-
-			for (S32 i = 0; i < volume->getNumVolumeFaces(); ++i)
-			{
-				const LLVolumeFace& face = volume->getVolumeFace(i);
-				vertex_count += face.mNumVertices;
-				index_count += face.mNumIndices;
-			}
-
 			d->mPhysicsShapeMesh.clear();
 
 			std::vector<LLVector3>& pos = d->mPhysicsShapeMesh.mPositions;
diff --git a/indra/newview/llvopartgroup.cpp b/indra/newview/llvopartgroup.cpp
index 5ef7b15bb1c..13be46a29aa 100644
--- a/indra/newview/llvopartgroup.cpp
+++ b/indra/newview/llvopartgroup.cpp
@@ -851,9 +851,6 @@ void LLParticlePartition::getGeometry(LLSpatialGroup* group)
 
 	std::sort(mFaceList.begin(), mFaceList.end(), LLFace::CompareDistanceGreater());
 
-	U32 index_count = 0;
-	U32 vertex_count = 0;
-
 	group->clearDrawMap();
 
 	LLVertexBuffer* buffer = group->mVertexBuffer;
@@ -917,10 +914,6 @@ void LLParticlePartition::getGeometry(LLSpatialGroup* group)
 		llassert(facep->getGeomCount() == 4);
 		llassert(facep->getIndicesCount() == 6);
 
-
-		vertex_count += facep->getGeomCount();
-		index_count += facep->getIndicesCount();
-
 		S32 idx = draw_vec.size()-1;
 
 		BOOL fullbright = facep->isState(LLFace::FULLBRIGHT);
-- 
GitLab