summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-18 10:22:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-18 13:47:29 +0200
commitcb315646e2cecd9bc31806064ee285403ba5c46e (patch)
treefa0f71420dd97c6be9d9a3dfe6399c08d8298ca3 /svtools
parentfba231b21b3d2403679e626f7a1b30aefde6879e (diff)
headString in SvTreeListBox is unused
ever since being added in commit b755fb8c0f6b1282f62c12f378c0a5ecac64d490 Date: Mon Nov 25 16:15:58 2013 +0000 Integrate branch of IAccessible2 Change-Id: Iebb8d30d53cc08e7cc35d610f04db8ed6c853b70
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx37
1 files changed, 1 insertions, 36 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 894fa12ef6f4..4c2b8806e47c 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1335,48 +1335,13 @@ OUString SvTreeListBox::SearchEntryTextWithHeadTitle( SvTreeListEntry* pEntry )
sal_uInt16 nCount = pEntry->ItemCount();
sal_uInt16 nCur = 0;
- sal_uInt16 nHeaderCur = 0;
while( nCur < nCount )
{
SvLBoxItem& rItem = pEntry->GetItem( nCur );
if ( (rItem.GetType() == SvLBoxItemType::String) &&
!static_cast<SvLBoxString&>( rItem ).GetText().isEmpty() )
{
- //want the column header
- if (!headString.isEmpty())
- {
- sal_Int32 nEnd = headString.indexOf('\t');
- if( nEnd == -1 )
- {
- if (!sRet.isEmpty())
- {
- sRet += ",";
- }
- if (!headString.isEmpty())
- {
- sRet += headString + ":";
- }
- }
- else
- {
- OUString aString=headString.getToken(nHeaderCur, '\t');
- if (!sRet.isEmpty())
- {
- sRet += ",";
- }
- if (!aString.isEmpty())
- {
- sRet += aString + ":";
- }
- nHeaderCur++;
- }
- sRet += static_cast<SvLBoxString&>( rItem ).GetText();
- }
- else
- {
- sRet += static_cast<SvLBoxString&>( rItem ).GetText() + ",";
- }
- //end want to the column header
+ sRet += static_cast<SvLBoxString&>( rItem ).GetText() + ",";
}
nCur++;
}