summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessiblelistbox.cxx7
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx4
2 files changed, 0 insertions, 11 deletions
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx
index 63f7ff87ac10..0441de61dfbc 100644
--- a/accessibility/source/extended/accessiblelistbox.cxx
+++ b/accessibility/source/extended/accessiblelistbox.cxx
@@ -394,13 +394,6 @@ namespace accessibility
{
::comphelper::OExternalLockGuard aGuard( this );
- if(getListBox())
- {
- SvTreeAccRoleType nType = getListBox()->GetAllEntriesAccessibleRoleType();
- if( nType == SvTreeAccRoleType::TREE)
- return AccessibleRole::TREE;
- }
-
//o is: return AccessibleRole::TREE;
bool bHasButtons = (getListBox()->GetStyle() & WB_HASBUTTONS)!=0;
if(!bHasButtons && (getListBox()->GetTreeFlags() & SvTreeFlags::CHKBTN))
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index b3257345a822..12dd5fbbc629 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -397,10 +397,6 @@ namespace accessibility
SvTreeListBox* pBox = getListBox();
if(pBox)
{
- SvTreeAccRoleType nType = pBox->GetAllEntriesAccessibleRoleType();
- if( nType == SvTreeAccRoleType::TREE)
- return AccessibleRole::TREE_ITEM;
-
SvTreeFlags treeFlag = pBox->GetTreeFlags();
if(treeFlag & SvTreeFlags::CHKBTN )
{