From 1a3c99f2c31dbc4dd6b3b5788ea0b49a34bea2c6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 4 Apr 2015 15:33:20 +0100 Subject: callcatcher: update unusedcode mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc --- vcl/source/window/toolbox2.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'vcl/source/window/toolbox2.cxx') diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 7fbdb39ddbd3..2c9a9d0eda9e 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1022,18 +1022,6 @@ Rectangle ToolBox::GetItemPosRect( sal_uInt16 nPos ) const return Rectangle(); } -Size ToolBox::GetItemContentSize( sal_uInt16 nItemId ) const -{ - if ( mbCalc || mbFormat ) - const_cast(this)->ImplFormat(); - - sal_uInt16 nPos = GetItemPos( nItemId ); - if ( nPos < mpData->m_aItems.size() ) - return mpData->m_aItems[nPos].maContentSize; - else - return Size(); -} - bool ToolBox::ImplHasExternalMenubutton() { // check if the borderwindow (i.e. the decoration) provides the menu button -- cgit