diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 09:43:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 12:57:58 +0100 |
commit | 437adaac0af448ef1ffe48a7f59f1770d2dd2458 (patch) | |
tree | ddcba2e2780583eaf37b87e57417649d92f7670b /vcl/source/window | |
parent | 4b850b204fbbe13e3ed11434f262dfabe528241a (diff) |
loplugin:unusedmethods
Change-Id: Id0d68d659fa06a8230ed0d927b85b6b504525d1e
Reviewed-on: https://gerrit.libreoffice.org/64328
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/status.cxx | 17 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 17 |
2 files changed, 0 insertions, 34 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 12bc7cbc3039..ce605fa4d4b1 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -1309,23 +1309,6 @@ void StatusBar::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId ) mvItemList[ nPos ]->maHelpId = rHelpId; } -OString StatusBar::GetHelpId( sal_uInt16 nItemId ) const -{ - sal_uInt16 nPos = GetItemPos( nItemId ); - - OString aRet; - if ( nPos != STATUSBAR_ITEM_NOTFOUND ) - { - ImplStatusItem* pItem = mvItemList[ nPos ].get(); - if ( !pItem->maHelpId.isEmpty() ) - aRet = pItem->maHelpId; - else - aRet = OUStringToOString( pItem->maCommand, RTL_TEXTENCODING_UTF8 ); - } - - return aRet; -} - void StatusBar::StartProgressMode( const OUString& rText ) { SAL_WARN_IF( mbProgressMode, "vcl", "StatusBar::StartProgressMode(): progress mode is active" ); diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 082cab508b82..316c4acbde54 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1399,23 +1399,6 @@ void ToolBox::SetHelpId( sal_uInt16 nItemId, const OString& rHelpId ) pItem->maHelpId = rHelpId; } -OString ToolBox::GetHelpId( sal_uInt16 nItemId ) const -{ - OString aRet; - - ImplToolItem* pItem = ImplGetItem( nItemId ); - - if ( pItem ) - { - if ( !pItem->maHelpId.isEmpty() ) - aRet = pItem->maHelpId; - else - aRet = OUStringToOString( pItem->maCommandStr, RTL_TEXTENCODING_UTF8 ); - } - - return aRet; -} - void ToolBox::SetOutStyle( sal_uInt16 nNewStyle ) { // always force flat looking toolbars since NWF |