diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-20 16:52:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-21 07:16:46 +0100 |
commit | 4a08d20ee58a6ade7dce58e45432cde73d9eb7b8 (patch) | |
tree | c5d3d0901d9eae7157732445c7565f9b89ae63fb /vcl | |
parent | 285d275816e58798a0a830f356cc76ef5ef506e1 (diff) |
loplugin:unusedmethods
Change-Id: I2194158d555958f0192d8d6c18e4c093608b8fb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89119
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/combobox.cxx | 12 | ||||
-rw-r--r-- | vcl/source/control/field.cxx | 21 | ||||
-rw-r--r-- | vcl/source/control/quickselectionengine.cxx | 5 | ||||
-rw-r--r-- | vcl/source/treelist/svtabbx.cxx | 50 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 5 |
6 files changed, 0 insertions, 98 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 6bc591f3cf2a..c3e8c522a129 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -995,8 +995,6 @@ bool ComboBox::IsMultiSelectionEnabled() const void ComboBox::SetSelectHdl(const Link<ComboBox&,void>& rLink) { m_pImpl->m_SelectHdl = rLink; } -const Link<ComboBox&,void>& ComboBox::GetSelectHdl() const { return m_pImpl->m_SelectHdl; } - void ComboBox::SetDoubleClickHdl(const Link<ComboBox&,void>& rLink) { m_pImpl->m_DoubleClickHdl = rLink; } const Link<ComboBox&,void>& ComboBox::GetDoubleClickHdl() const { return m_pImpl->m_DoubleClickHdl; } @@ -1008,11 +1006,6 @@ void ComboBox::SetEntryActivateHdl(const Link<Edit&,bool>& rLink) m_pImpl->m_pSubEdit->SetActivateHdl(rLink); } -long ComboBox::CalcWindowSizePixel(sal_uInt16 nLines) const -{ - return m_pImpl->m_pImplLB->GetEntryHeight() * nLines; -} - Size ComboBox::GetOptimalSize() const { return CalcMinimumSize(); @@ -1345,11 +1338,6 @@ sal_Int32 ComboBox::GetTopEntry() const return nPos; } -void ComboBox::SetProminentEntryType( ProminentEntry eType ) -{ - m_pImpl->m_pImplLB->SetProminentEntryType( eType ); -} - tools::Rectangle ComboBox::GetDropDownPosSizePixel() const { return m_pImpl->m_pFloatWin diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 0cc13221129e..3f5ba183f9c0 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -586,16 +586,6 @@ void NumericFormatter::SetDecimalDigits( sal_uInt16 nDigits ) ReformatAll(); } -void NumericFormatter::SetShowTrailingZeros( bool bShowTrailingZeros ) -{ - if ( mbShowTrailingZeros != bShowTrailingZeros ) - { - mbShowTrailingZeros = bShowTrailingZeros; - ReformatAll(); - } -} - - void NumericFormatter::SetValue( sal_Int64 nNewValue ) { SetUserValue( nNewValue ); @@ -1008,11 +998,6 @@ void NumericBox::ReformatAll() SetUpdateMode( true ); } -void NumericBox::InsertValue( sal_Int64 nValue, sal_Int32 nPos ) -{ - ComboBox::InsertEntry( CreateFieldText( nValue ), nPos ); -} - static bool ImplMetricProcessKeyInput( const KeyEvent& rKEvt, bool bUseThousandSep, const LocaleDataWrapper& rWrapper ) { @@ -1535,12 +1520,6 @@ sal_Int64 MetricFormatter::GetMax( FieldUnit eOutUnit ) const return vcl::ConvertValue(NumericFormatter::GetMax(), 0, GetDecimalDigits(), meUnit, eOutUnit); } -sal_Int64 MetricFormatter::GetBaseValue() const -{ - // convert to requested units - return vcl::ConvertValue(0, 0, GetDecimalDigits(), meUnit, FieldUnit::NONE); -} - void MetricFormatter::Reformat() { if ( !GetField() ) diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx index 5b76b0352872..9719f0e94734 100644 --- a/vcl/source/control/quickselectionengine.cxx +++ b/vcl/source/control/quickselectionengine.cxx @@ -106,11 +106,6 @@ namespace vcl { } - void QuickSelectionEngine::SetEnabled( bool b ) - { - bEnabled = b; - } - bool QuickSelectionEngine::HandleKeyEvent( const KeyEvent& _keyEvent ) { if( bEnabled ) diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx index 94fee305b044..9ffdaf8c37c7 100644 --- a/vcl/source/treelist/svtabbx.cxx +++ b/vcl/source/treelist/svtabbx.cxx @@ -128,23 +128,6 @@ void SvTabListBox::SetTabs(sal_uInt16 nTabs, long const pTabPositions[], MapUnit Invalidate(); } -void SvTabListBox::SetTab( sal_uInt16 nTab,long nValue,MapUnit eMapUnit ) -{ - DBG_ASSERT(nTab<mvTabList.size(),"Invalid Tab-Pos"); - if( nTab >= mvTabList.size() ) - return; - - MapMode aMMSource( eMapUnit ); - MapMode aMMDest( MapUnit::MapPixel ); - Size aSize( nValue, 0 ); - aSize = LogicToLogic( aSize, &aMMSource, &aMMDest ); - nValue = aSize.Width(); - mvTabList[ nTab ].SetPos( nValue ); - SvTreeListBox::nTreeFlags |= SvTreeFlags::RECALCTABS; - if( IsUpdateMode() ) - Invalidate(); -} - SvTreeListEntry* SvTabListBox::InsertEntry( const OUString& rText, SvTreeListEntry* pParent, bool /*bChildrenOnDemand*/, sal_uLong nPos, void* pUserData ) @@ -261,39 +244,6 @@ OUString SvTabListBox::GetEntryText( sal_uLong nPos, sal_uInt16 nCol ) const return GetEntryText( pEntry, nCol ); } -void SvTabListBox::SetEntryText(const OUString& rStr, SvTreeListEntry* pEntry, sal_uInt16 nCol) -{ - DBG_ASSERT(pEntry,"SetEntryText:Invalid Entry"); - if( !pEntry ) - return; - - OUString sOldText = GetEntryText(pEntry, nCol); - if (sOldText == rStr) - return; - - sal_Int32 nIndex = 0; - const sal_uInt16 nCount = pEntry->ItemCount(); - for (sal_uInt16 nCur = 0; nCur < nCount; ++nCur) - { - SvLBoxItem& rBoxItem = pEntry->GetItem( nCur ); - if (rBoxItem.GetType() == SvLBoxItemType::String) - { - if (!nCol || nCol==0xFFFF) - { - const OUString aTemp(GetToken(rStr, nIndex)); - static_cast<SvLBoxString&>(rBoxItem).SetText( aTemp ); - if (!nCol && nIndex<0) - break; - } - else - { - --nCol; - } - } - } - GetModel()->InvalidateEntry( pEntry ); -} - OUString SvTabListBox::GetCellText( sal_uLong nPos, sal_uInt16 nCol ) const { SvTreeListEntry* pEntry = GetEntryOnPos( nPos ); diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index e10cc0e4f104..c17c9c78a0eb 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -3405,11 +3405,6 @@ ScrollBar *SvTreeListBox::GetVScroll() return pImpl->m_aVerSBar.get(); } -ScrollBar *SvTreeListBox::GetHScroll() -{ - return pImpl->m_aHorSBar.get(); -} - void SvTreeListBox::EnableAsyncDrag( bool b ) { pImpl->EnableAsyncDrag( b ); diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index a781b314d751..deece3481460 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -4662,11 +4662,6 @@ static bool ImplIsValidItem( const ImplToolItem* pItem, bool bNotClipped ) return bValid; } -bool ToolBox::ChangeHighlightUpDn( bool bUp ) -{ - return ImplChangeHighlightUpDn(bUp, /*bNoCycle*/ false); -} - bool ToolBox::ImplChangeHighlightUpDn( bool bUp, bool bNoCycle ) { ImplToolItem* pToolItem = ImplGetItem( mnHighItemId ); |