diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-20 14:28:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-20 14:35:55 +0100 |
commit | 01702f7d5f52b72a890f6a0173d42199c587e01f (patch) | |
tree | 40ec6952bf34536c9f9dc7a487cc5636595a636c /vcl | |
parent | aee42a7bf199ce537273184428a892e74d7deea7 (diff) |
loplugin:unusedmethods
Change-Id: Ie5e90b3c834a1154ec49dc765a5031f6bdd35923
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87070
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/listbox.hxx | 1 | ||||
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 15 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 14 |
3 files changed, 0 insertions, 30 deletions
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index 8faed20374e8..f0b4d855e4f4 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -113,7 +113,6 @@ public: sal_Int32 FindMatchingEntry( const OUString& rStr, sal_Int32 nStart, bool bLazy ) const; sal_Int32 FindEntry( const OUString& rStr, bool bSearchMRUArea = false ) const; - sal_Int32 FindEntry( const void* pData ) const; /// helper: add up heights up to index nEndIndex. /// GetAddedHeight( 0 ) @return 0 diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 3f053f466a0b..c65f63b4b782 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -271,21 +271,6 @@ sal_Int32 ImplEntryList::FindMatchingEntry( const OUString& rStr, sal_Int32 nSta return nPos; } -sal_Int32 ImplEntryList::FindEntry( const void* pData ) const -{ - sal_Int32 nPos = LISTBOX_ENTRY_NOTFOUND; - for ( sal_Int32 n = GetEntryCount(); n; ) - { - ImplEntryType* pImplEntry = GetEntry( --n ); - if ( pImplEntry->mpUserData == pData ) - { - nPos = n; - break; - } - } - return nPos; -} - long ImplEntryList::GetAddedHeight( sal_Int32 i_nEndIndex, sal_Int32 i_nBeginIndex ) const { long nHeight = 0; diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index e75ec1436c52..2db4448a4f5d 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1084,20 +1084,6 @@ vcl::Window* ToolBox::GetItemWindow( sal_uInt16 nItemId ) const return nullptr; } -void ToolBox::StartSelection() -{ - if ( mbDrag ) - EndSelection(); - - if ( !mbSelection ) - { - mbSelection = true; - mnCurPos = ITEM_NOTFOUND; - mnCurItemId = 0; - Activate(); - } -} - void ToolBox::EndSelection() { if ( mbDrag || mbSelection ) |