From 74984b5a3c5efd4cdcd446b6d03517938c07b524 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 27 Apr 2014 18:46:50 -0400 Subject: [PATCH] Further cleanup of im floater draw call due to last commit --- indra/newview/llimpanel.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 275c530f4..7a4b11c86 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -554,12 +554,7 @@ void LLFloaterIMPanel::onClickMuteVoice() // virtual void LLFloaterIMPanel::draw() { - LLViewerRegion* region = gAgent.getRegion(); - - bool enable_connect = region - && mSessionInitialized - && LLVoiceClient::getInstance()->voiceEnabled() - && mCallBackEnabled; + bool enable_connect = mSessionInitialized && LLVoiceClient::getInstance()->voiceEnabled() && mCallBackEnabled; // hide/show start call and end call buttons mEndCallBtn->setVisible(LLVoiceClient::getInstance()->voiceEnabled() && mVoiceChannel->getState() >= LLVoiceChannel::STATE_CALL_STARTED);