diff --git a/svtools/source/control/accessibleruler.cxx b/svtools/source/control/accessibleruler.cxx index 0dc6c2301164..a4674b328073 100644 --- a/svtools/source/control/accessibleruler.cxx +++ b/svtools/source/control/accessibleruler.cxx @@ -88,33 +88,6 @@ uno::Reference< XAccessible > SAL_CALL SvtRulerAccessible::getAccessibleParent() return mxParent; } -sal_Int64 SAL_CALL SvtRulerAccessible::getAccessibleIndexInParent() -{ - SolarMutexGuard aSolarGuard; - - // Use a simple but slow solution for now. Optimize later. - - // Iterate over all the parent's children and search for this object. - if( mxParent.is() ) - { - uno::Reference< XAccessibleContext > xParentContext( mxParent->getAccessibleContext() ); - if( xParentContext.is() ) - { - sal_Int64 nChildCount = xParentContext->getAccessibleChildCount(); - for( sal_Int64 i = 0 ; i < nChildCount ; ++i ) - { - uno::Reference< XAccessible > xChild( xParentContext->getAccessibleChild( i ) ); - if( xChild.get() == static_cast(this) ) - return i; - } - } - } - - // Return -1 to indicate that this object's parent does not know about the - // object. - return -1; -} - sal_Int16 SAL_CALL SvtRulerAccessible::getAccessibleRole() { SolarMutexGuard aSolarGuard; diff --git a/svtools/source/control/accessibleruler.hxx b/svtools/source/control/accessibleruler.hxx index 76b806ea041e..530dceca34bc 100644 --- a/svtools/source/control/accessibleruler.hxx +++ b/svtools/source/control/accessibleruler.hxx @@ -71,9 +71,6 @@ public: virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL getAccessibleParent() override; - virtual sal_Int64 SAL_CALL - getAccessibleIndexInParent() override; - virtual sal_Int16 SAL_CALL getAccessibleRole() override;