From 516bdf7989dc2e2650490893e1ead054d40eaf37 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 8 Jun 2019 12:39:25 +0200 Subject: loplugin:singlevalfields Change-Id: I7c00b7d932bf96a0725eac5482580461baea6977 Reviewed-on: https://gerrit.libreoffice.org/73697 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/source/extended/accessiblelistbox.cxx | 7 ------- accessibility/source/extended/accessiblelistboxentry.cxx | 4 ---- 2 files changed, 11 deletions(-) (limited to 'accessibility') 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 ) { -- cgit