From 2510134f40c2edd2eea40f486f094517b8ffaa51 Mon Sep 17 00:00:00 2001
From: "Jonathan \"Geenz\" Goodman" <geenz@geenzo.com>
Date: Wed, 24 Jan 2024 17:07:56 -0800
Subject: https://github.com/secondlife/viewer-issues/issues/23 Cleaning out
 some unused code.

---
 indra/newview/llface.cpp | 12 ------------
 indra/newview/llface.h   |  5 -----
 2 files changed, 17 deletions(-)

diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 2c04224fa0..69e43bb458 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -488,11 +488,6 @@ U16 LLFace::getGeometry(LLStrider<LLVector3> &vertices, LLStrider<LLVector3> &no
 	return mGeomIndex;
 }
 
-LLVector3 LLFace::getAverageNormal()
-{
-    return mAverageNormal;
-}
-
 void LLFace::updateCenterAgent()
 {
 	if (mDrawablep->isActive())
@@ -1895,20 +1890,13 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
 			LLVector4a* src = vf.mNormals;
 			LLVector4a* end = src+num_vertices;
 
-            LLVector4a normal_total;
-
 			while (src < end)
 			{	
 				LLVector4a normal;
 				mat_normal.rotate(*src++, normal);
 				normal.store4a(normals);
-                normal_total.add(normal);
 				normals += 4;
 			}
-
-			normal_total.div(LLVector4a(num_vertices));
-
-			mAverageNormal = LLVector3(normal_total[0], normal_total[1], normal_total[2]);
 		}
 		
 		if (rebuild_tangent)
diff --git a/indra/newview/llface.h b/indra/newview/llface.h
index d4f4313073..eb3b47d6d6 100644
--- a/indra/newview/llface.h
+++ b/indra/newview/llface.h
@@ -176,8 +176,6 @@ public:
 								LLStrider<LLVector3> &normals,
 								LLStrider<LLVector2> &texCoords, 
 								LLStrider<U16>  &indices);
-    
-    LLVector3       getAverageNormal();
 
 	S32 getColors(LLStrider<LLColor4U> &colors);
 	S32 getIndices(LLStrider<U16> &indices);
@@ -280,9 +278,6 @@ private:
 	U32			mIndicesCount;
 	U32			mIndicesIndex;		// index into mVertexBuffer's index array
 	S32         mIndexInTex[LLRender::NUM_TEXTURE_CHANNELS];
-    
-    LLVector3   mAverageNormal;
-    bool        mHasAverageNormal;
 
 	LLXformMatrix* mXform;
 
-- 
cgit v1.2.3