From fceec45641cf6a4b7eecaf37ea080a184c279239 Mon Sep 17 00:00:00 2001 From: Ansariel Hiller Date: Sat, 27 Jul 2024 17:10:17 +0200 Subject: Fix a bunch of XUI warnings (#2120) --- indra/newview/llpanelgroup.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'indra/newview/llpanelgroup.cpp') diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index 3db0f90df8..079a5583d4 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -167,8 +167,6 @@ bool LLPanelGroup::postBuild() mButtonRefresh = getChild("btn_refresh"); mButtonRefresh->setClickedCallback(onBtnRefresh, this); - mButtonCancel = getChild("btn_cancel"); - mGroupNameCtrl = getChild("group_name"); childSetCommitCallback("back",boost::bind(&LLPanelGroup::onBackBtnClick,this),NULL); @@ -214,18 +212,8 @@ void LLPanelGroup::reposButton(LLButton* button) void LLPanelGroup::reposButtons() { - if(mButtonRefresh && mButtonCancel && mButtonRefresh->getVisible() && mButtonCancel->getVisible()) - { - LLRect btn_refresh_rect = mButtonRefresh->getRect(); - LLRect btn_cancel_rect = mButtonCancel->getRect(); - btn_refresh_rect.setLeftTopAndSize( btn_cancel_rect.mLeft + btn_cancel_rect.getWidth() + 2, - btn_refresh_rect.getHeight() + 2, btn_refresh_rect.getWidth(), btn_refresh_rect.getHeight()); - mButtonRefresh->setRect(btn_refresh_rect); - } - reposButton(mButtonApply); reposButton(mButtonRefresh); - reposButton(mButtonCancel); reposButton(mButtonChat); reposButton(mButtonCall); } @@ -376,9 +364,6 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) if(mButtonRefresh) mButtonRefresh->setVisible(!is_null_group_id); - if(mButtonCancel) - mButtonCancel->setVisible(!is_null_group_id); - if(mButtonCall) mButtonCall->setVisible(!is_null_group_id); if(mButtonChat) -- cgit v1.2.3