diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-13 09:26:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-13 09:16:59 +0100 |
commit | d5047c4a1cbae1cb2b57ed435ecd63e6817506d3 (patch) | |
tree | 1065eef1ad9f0bfea732d58a3a554da0f36cff7c /vcl | |
parent | 748e354af826f2439982b69ffa99dce68378d1f1 (diff) |
loplugin:unusedmethods
Change-Id: I4eae284cf763b260dd9349bf8d31f46612916de1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86654
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/svimpbox.hxx | 1 | ||||
-rw-r--r-- | vcl/source/control/field.cxx | 10 | ||||
-rw-r--r-- | vcl/source/control/listbox.cxx | 10 | ||||
-rw-r--r-- | vcl/source/treelist/svimpbox.cxx | 15 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 22 |
5 files changed, 0 insertions, 58 deletions
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx index 5206ded364fc..856f0ea74ae8 100644 --- a/vcl/inc/svimpbox.hxx +++ b/vcl/inc/svimpbox.hxx @@ -331,7 +331,6 @@ public: void ShowFocusRect( const SvTreeListEntry* pEntry ); void CallEventListeners( VclEventId nEvent, void* pData = nullptr ); - bool SetCurrentTabPos( sal_uInt16 _nNewPos ); sal_uInt16 GetCurrentTabPos() const { return m_nCurTabPos; } bool IsSelectable( const SvTreeListEntry* pEntry ); diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 5ff9acab9c1d..aa79e0890623 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -643,16 +643,6 @@ sal_Int64 NumericFormatter::GetValue() const return GetField() ? GetValueFromString(GetField()->GetText()) : 0; } -bool NumericFormatter::IsValueModified() const -{ - if ( ImplGetEmptyFieldValue() ) - return !IsEmptyFieldValue(); - else if ( GetValue() != mnFieldValue ) - return true; - else - return false; -} - sal_Int64 NumericFormatter::Normalize( sal_Int64 nValue ) const { return (nValue * ImplPower10( GetDecimalDigits() ) ); diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index 9d1de7296920..8772fb40db8d 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -986,16 +986,6 @@ sal_Int32 ListBox::GetEntryPos( const OUString& rStr ) const return nPos; } -sal_Int32 ListBox::GetEntryPos( const void* pData ) const -{ - if (!mpImplLB) - return LISTBOX_ENTRY_NOTFOUND; - sal_Int32 nPos = mpImplLB->GetEntryList()->FindEntry( pData ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - nPos = nPos - mpImplLB->GetEntryList()->GetMRUCount(); - return nPos; -} - OUString ListBox::GetEntry( sal_Int32 nPos ) const { if (!mpImplLB) diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx index baa2852c8170..0c3a2ef5bae0 100644 --- a/vcl/source/treelist/svimpbox.cxx +++ b/vcl/source/treelist/svimpbox.cxx @@ -3358,21 +3358,6 @@ void SvImpLBox::CallEventListeners( VclEventId nEvent, void* pData ) } -bool SvImpLBox::SetCurrentTabPos( sal_uInt16 _nNewPos ) -{ - bool bRet = false; - - if ( m_pView && _nNewPos < ( m_pView->TabCount() - 2 ) ) - { - m_nCurTabPos = _nNewPos; - ShowCursor( true ); - bRet = true; - } - - return bRet; -} - - bool SvImpLBox::IsSelectable( const SvTreeListEntry* pEntry ) { if( pEntry ) diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 8e21fdd58a92..e75ec1436c52 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -944,28 +944,6 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) } } -void ToolBox::SetItemOverlayImage( sal_uInt16 nItemId, const Image& rImage ) -{ - ImplToolItems::size_type nPos = GetItemPos( nItemId ); - - if ( nPos != ITEM_NOTFOUND ) - { - ImplToolItem* pItem = &mpData->m_aItems[nPos]; - Size aOldSize = pItem->maOverlayImage.GetSizePixel(); - - pItem->maOverlayImage = rImage; - - // only once all is calculated, do extra work - if (!mbCalc) - { - if (aOldSize != pItem->maOverlayImage.GetSizePixel()) - ImplInvalidate( true ); - else - ImplUpdateItem( nPos ); - } - } -} - static Image ImplRotImage( const Image& rImage, long nAngle10 ) { BitmapEx aRotBitmapEx( rImage.GetBitmapEx() ); |