summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 17:07:56 -0800
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 17:07:56 -0800
commit2510134f40c2edd2eea40f486f094517b8ffaa51 (patch)
tree587cb9570386e50ea009112dba5c9ea0d56ffa51 /indra/newview
parenta888531fd1fbf7de0d71b4d04195d4267c882154 (diff)
https://github.com/secondlife/viewer-issues/issues/23 Cleaning out some unused code.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llface.cpp12
-rw-r--r--indra/newview/llface.h5
2 files changed, 0 insertions, 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;