[Libreoffice-commits] core.git: include/vcl vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 29 07:47:10 UTC 2020
include/vcl/treelistbox.hxx | 3 ---
vcl/source/treelist/treelistbox.cxx | 16 ----------------
2 files changed, 19 deletions(-)
New commits:
commit 43dc3934822fa62bb44ebe2da65240637f38e8d8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 28 15:06:24 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Apr 29 09:46:31 2020 +0200
remove unused SvTreeListBox::RemoveParentKeepChildren
Change-Id: If20d8f0140b223bad921c8d7be34b1973cfe692e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93076
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index c0ae9c5c85fb..f0b97a734b6d 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -696,9 +696,6 @@ public:
void SetHighlightRange(sal_uInt16 nFirstTab=0, sal_uInt16 nLastTab=0xffff);
- // A Parent's Children are turned into Children of the Parent which comes next in hierarchy
- void RemoveParentKeepChildren( SvTreeListEntry* pParent );
-
sal_Int32 DefaultCompare(const SvLBoxString* pLeftText, const SvLBoxString* pRightText);
DECL_LINK( DefaultCompare, const SvSortData&, sal_Int32 );
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx
index 68c6a4d6bd3c..5259cfe7881a 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -3287,22 +3287,6 @@ void SvTreeListBox::Command(const CommandEvent& rCEvt)
Control::Command(rCEvt);
}
-void SvTreeListBox::RemoveParentKeepChildren( SvTreeListEntry* pParent )
-{
- assert(pParent);
- SvTreeListEntry* pNewParent = GetParent( pParent );
- if( pParent->HasChildren())
- {
- SvTreeListEntry* pChild = FirstChild( pParent );
- while( pChild )
- {
- pModel->Move( pChild, pNewParent, TREELIST_APPEND );
- pChild = FirstChild( pParent );
- }
- }
- pModel->Remove( pParent );
-}
-
SvLBoxTab* SvTreeListBox::GetFirstTab( SvLBoxTabFlags nFlagMask, sal_uInt16& rPos )
{
sal_uInt16 nTabCount = aTabs.size();
More information about the Libreoffice-commits
mailing list