From 4387118d55d10df56ce547588c7d6c09395ddcd2 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 23 Nov 2014 18:50:59 -0500 Subject: [PATCH] Remove silly redundant code in LLFloater::draw Thanks to Diva for pointing this out. --- indra/llui/llfloater.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index c8be07f43..e3da1a9d6 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -1498,23 +1498,8 @@ void LLFloater::draw() } else { - // draw children - LLView* focused_child = dynamic_cast(gFocusMgr.getKeyboardFocus()); - BOOL focused_child_visible = FALSE; - if (focused_child && focused_child->getParent() == this) - { - focused_child_visible = focused_child->getVisible(); - focused_child->setVisible(FALSE); - } - // don't call LLPanel::draw() since we've implemented custom background rendering LLView::draw(); - - if (focused_child_visible) - { - focused_child->setVisible(TRUE); - } - drawChild(focused_child); } if( isBackgroundVisible() )