summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-13 15:03:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-14 08:48:09 +0100
commitc196d70337f6b755cfc4c34beda05554c6fab114 (patch)
tree233f8a3f1bfc26debc8be8aa04381125310f99c0 /svx
parent527977d5cac51a9edd522d675f0ccf575d2f2dc0 (diff)
loplugin:unusedmethods
Change-Id: Ief7cdb14e2c0fe4b0332cd90e063d649065bf3b6 Reviewed-on: https://gerrit.libreoffice.org/69171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/checklbx.cxx62
1 files changed, 0 insertions, 62 deletions
diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx
index 335f9ae5740d..bec5b7fb2583 100644
--- a/svx/source/dialog/checklbx.cxx
+++ b/svx/source/dialog/checklbx.cxx
@@ -49,22 +49,6 @@ void SvxCheckListBox::Init_Impl()
EnableCheckButton( pCheckButton.get() );
}
-void SvxCheckListBox::InsertEntry( const OUString& rStr, sal_uLong nPos,
- void* pUserData,
- SvLBoxButtonKind eButtonKind )
-{
- SvTreeListBox::InsertEntry( rStr, nullptr, false, nPos, pUserData,
- eButtonKind );
-}
-
-
-void SvxCheckListBox::RemoveEntry( sal_uLong nPos )
-{
- if ( nPos < GetEntryCount() )
- SvTreeListBox::GetModel()->Remove( GetEntry( nPos ) );
-}
-
-
void SvxCheckListBox::SelectEntryPos( sal_uLong nPos )
{
if ( nPos < GetEntryCount() )
@@ -82,30 +66,6 @@ sal_uLong SvxCheckListBox::GetSelectedEntryPos() const
}
-OUString SvxCheckListBox::GetText( sal_uLong nPos ) const
-{
- SvTreeListEntry* pEntry = GetEntry( nPos );
-
- if ( pEntry )
- return GetEntryText( pEntry );
- return OUString();
-}
-
-
-sal_uLong SvxCheckListBox::GetCheckedEntryCount() const
-{
- sal_uLong nCheckCount = 0;
- sal_uLong nCount = GetEntryCount();
-
- for ( sal_uLong i = 0; i < nCount; ++i )
- {
- if ( IsChecked( i ) )
- nCheckCount++;
- }
- return nCheckCount;
-}
-
-
void SvxCheckListBox::CheckEntryPos( sal_uLong nPos, bool bCheck )
{
if ( nPos < GetEntryCount() )
@@ -122,28 +82,6 @@ bool SvxCheckListBox::IsChecked( sal_uLong nPos ) const
}
-void* SvxCheckListBox::SetEntryData ( sal_uLong nPos, void* pNewData )
-{
- void* pOld = nullptr;
-
- if ( nPos < GetEntryCount() )
- {
- pOld = GetEntry( nPos )->GetUserData();
- GetEntry( nPos )->SetUserData( pNewData );
- }
- return pOld;
-}
-
-
-void* SvxCheckListBox::GetEntryData( sal_uLong nPos ) const
-{
- if ( nPos < GetEntryCount() )
- return GetEntry( nPos )->GetUserData();
- else
- return nullptr;
-}
-
-
void SvxCheckListBox::ToggleCheckButton( SvTreeListEntry* pEntry )
{
if ( pEntry )