diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp
index c41944bdbba22ee2efb8b8debd317b39180f6dc8..549d0c4b3b34642fcfff0bc3c402da45fd39ecb2 100644
--- a/indra/llinventory/llsettingssky.cpp
+++ b/indra/llinventory/llsettingssky.cpp
@@ -953,9 +953,6 @@ void LLSettingsSky::updateSettings()
 
 F32 LLSettingsSky::getSunMoonGlowFactor() const
 {
-    LLVector3 sunDir  = getSunDirection();
-    LLVector3 moonDir = getMoonDirection();
-
     // sun glow at full iff moon is not up
     if (getIsSunUp())
     {