[Libreoffice-commits] core.git: include/vcl vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 31 19:21:07 UTC 2020


 include/vcl/treelist.hxx         |    3 ---
 vcl/source/treelist/treelist.cxx |    9 ---------
 2 files changed, 12 deletions(-)

New commits:
commit df33c7a0747210b30ca1870877cc06c3fc1c4328
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jul 31 16:56:13 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 31 21:20:22 2020 +0200

    drop unused SvTreeList::LastSelected
    
    Change-Id: I3c51030b8b7a03d944bdaa5e8bc4fb0f443061f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99892
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/vcl/treelist.hxx b/include/vcl/treelist.hxx
index 85aba58f8818..50698ec2b68b 100644
--- a/include/vcl/treelist.hxx
+++ b/include/vcl/treelist.hxx
@@ -89,7 +89,6 @@ class VCL_DLLPUBLIC SvTreeList final
 
     SvTreeListEntry*        FirstSelected( const SvListView*) const;
     SvTreeListEntry*        NextSelected( const SvListView*,SvTreeListEntry* pEntry ) const;
-    SvTreeListEntry*        LastSelected( const SvListView*) const;
 
     sal_uLong           GetChildSelectionCount( const SvListView*,SvTreeListEntry* pParent ) const;
 
@@ -259,8 +258,6 @@ public:
     SvTreeListEntry*        NextSelected( SvTreeListEntry* pEntry ) const
     { return pModel->NextSelected(this,pEntry); }
 
-    SvTreeListEntry*        LastSelected() const
-    { return pModel->LastSelected(this); }
     SvTreeListEntry*        GetEntryAtAbsPos( sal_uLong nAbsPos ) const
     { return pModel->GetEntryAtAbsPos(nAbsPos); }
 
diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx
index 4f2cd1dfee0c..c9d6c264eaaf 100644
--- a/vcl/source/treelist/treelist.cxx
+++ b/vcl/source/treelist/treelist.cxx
@@ -787,15 +787,6 @@ SvTreeListEntry* SvTreeList::NextSelected( const SvListView* pView, SvTreeListEn
     return pEntry;
 }
 
-SvTreeListEntry* SvTreeList::LastSelected( const SvListView* pView ) const
-{
-    DBG_ASSERT(pView,"LastSel:No View");
-    SvTreeListEntry* pEntry = Last();
-    while( pEntry && !pView->IsSelected(pEntry) )
-        pEntry = Prev( pEntry );
-    return pEntry;
-}
-
 sal_uLong SvTreeList::Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,sal_uLong nPos )
 {
     DBG_ASSERT( pEntry,"Entry?");


More information about the Libreoffice-commits mailing list