From 6df92df74b68d5965ae3fbe9ce5cdc484f03ff20 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Apr 2020 14:38:04 +0200 Subject: loplugin:virtualdead Change-Id: I5698862e5890d3208bc7012b0ce5b60520797c2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91571 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/source/extended/accessiblelistboxentry.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'accessibility/source') diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index c5e65ee5a1d4..7b5b055f4d95 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -444,7 +444,7 @@ namespace accessibility SvTreeListEntry* pEntry = m_pTreeListBox->GetEntryFromPath( m_aEntryPath ); if( getAccessibleRole() == AccessibleRole::TREE_ITEM ) { - return m_pTreeListBox->GetEntryLongDescription( pEntry ); + return OUString(); } //want to count the real column number in the list box. sal_uInt16 iRealItemCount = 0; @@ -476,17 +476,7 @@ namespace accessibility EnsureIsAlive(); - OUString sRet(implGetText()); - - SvTreeListEntry* pEntry = m_pTreeListBox->GetEntryFromPath( m_aEntryPath ); - - OUString altText = m_pTreeListBox->GetEntryAltText( pEntry ); - if (!altText.isEmpty()) - { - sRet += " " + altText; - } - - return sRet; + return implGetText(); } Reference< XAccessibleRelationSet > SAL_CALL AccessibleListBoxEntry::getAccessibleRelationSet( ) -- cgit