From 92f79a7c102170011724430f30ce1aaf40031d21 Mon Sep 17 00:00:00 2001
From: Graham Linden <graham@lindenlab.com>
Date: Tue, 26 Mar 2019 11:41:27 -0700
Subject: [PATCH] Fix unused var warn-error for Clang.

---
 indra/newview/llvovolume.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index f97e0ff2e72..afccc1c42c4 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3277,20 +3277,17 @@ void LLVOVolume::updateSpotLightPriority()
 {
     F32 r = getLightRadius();
 	LLVector3 pos = mDrawable->getPositionAgent();
-    LLVector3 agent_pos = gAgent.getPositionAgent();
 
 	LLVector3 at(0,0,-1);
-
 	at *= getRenderRotation();
 	pos += at * r;
 
 	at = LLViewerCamera::getInstance()->getAtAxis();
-
 	pos -= at * r;
 	
 	mSpotLightPriority = gPipeline.calcPixelArea(pos, LLVector3(r,r,r), *LLViewerCamera::getInstance());
 
-    //mSpotLightPriority = (agent_pos - pos).length() + r;
+    //mSpotLightPriority = (gAgent.getPositionAgent() - pos).length() + r;
 
 	if (mLightTexture.notNull())
 	{
-- 
GitLab