diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-13 09:57:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-13 13:50:53 +0200 |
commit | 3d99ae3f98f3333b0aba4f213fc40f4c22ab9cf5 (patch) | |
tree | 27cc62144a751809c832cae1aa782865f6a07eec /vcl/source/treelist/svtabbx.cxx | |
parent | b641fccab785cc7dede720f7d5844e4f0cb95b91 (diff) |
loplugin:methodcycles
Change-Id: Ia14e47b811ca56d8d4517f262e008985d6aebe35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122020
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/treelist/svtabbx.cxx')
-rw-r--r-- | vcl/source/treelist/svtabbx.cxx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx index 355de256b65f..fd7a68c5d598 100644 --- a/vcl/source/treelist/svtabbx.cxx +++ b/vcl/source/treelist/svtabbx.cxx @@ -220,17 +220,6 @@ SvTreeListEntry* SvTabListBox::InsertEntry( const OUString& rText, SvTreeListEnt return InsertEntryToColumn( rText, pParent, nPos, 0xffff, pUserData ); } -SvTreeListEntry* SvTabListBox::InsertEntry( const OUString& rText, - const Image& rExpandedEntryBmp, - const Image& rCollapsedEntryBmp, - SvTreeListEntry* pParent, - bool /*bChildrenOnDemand*/, - sal_uInt32 nPos, void* pUserData ) -{ - return InsertEntryToColumn( rText, rExpandedEntryBmp, rCollapsedEntryBmp, - pParent, nPos, 0xffff, pUserData ); -} - SvTreeListEntry* SvTabListBox::InsertEntryToColumn(const OUString& rStr,SvTreeListEntry* pParent,sal_uInt32 nPos,sal_uInt16 nCol, void* pUser ) { @@ -256,36 +245,6 @@ SvTreeListEntry* SvTabListBox::InsertEntryToColumn(const OUString& rStr,SvTreeLi return SvTreeListBox::InsertEntry( aFirstStr, pParent, false, nPos, pUser ); } -SvTreeListEntry* SvTabListBox::InsertEntryToColumn( const OUString& rStr, - const Image& rExpandedEntryBmp, const Image& rCollapsedEntryBmp, - SvTreeListEntry* pParent,sal_uInt32 nPos,sal_uInt16 nCol, void* pUser ) -{ - OUString aStr; - if( nCol != 0xffff ) - { - while( nCol ) - { - aStr += "\t"; - nCol--; - } - } - aStr += rStr; - OUString aFirstStr( aStr ); - sal_Int32 nEnd = aFirstStr.indexOf('\t'); - if (nEnd != -1) - { - aFirstStr = aFirstStr.copy(0, nEnd); - aCurEntry = aStr.copy(++nEnd); - } - else - aCurEntry.clear(); - - return SvTreeListBox::InsertEntry( - aFirstStr, - rExpandedEntryBmp, rCollapsedEntryBmp, - pParent, false, nPos, pUser ); -} - OUString SvTabListBox::GetEntryText( SvTreeListEntry* pEntry ) const { return GetEntryText( pEntry, 0xffff ); @@ -557,16 +516,6 @@ SvTreeListEntry* SvHeaderTabListBox::InsertEntryToColumn( return pEntry; } -SvTreeListEntry* SvHeaderTabListBox::InsertEntryToColumn( - const OUString& rStr, const Image& rExpandedEntryBmp, const Image& rCollapsedEntryBmp, - SvTreeListEntry* pParent, sal_uInt32 nPos, sal_uInt16 nCol, void* pUserData ) -{ - SvTreeListEntry* pEntry = SvTabListBox::InsertEntryToColumn( - rStr, rExpandedEntryBmp, rCollapsedEntryBmp, pParent, nPos, nCol, pUserData ); - RecalculateAccessibleChildren(); - return pEntry; -} - sal_uInt32 SvHeaderTabListBox::Insert( SvTreeListEntry* pEnt, SvTreeListEntry* pPar, sal_uInt32 nPos ) { |