svtools/source/control/accessibleruler.cxx |   15 ---------------
 svtools/source/control/accessibleruler.hxx |    3 ---
 2 files changed, 18 deletions(-)

New commits:
commit 8792c3f5be5876963420484b4c8e6b5ea4d379a4
Author:     Michael Weghorn <[email protected]>
AuthorDate: Mon Jun 30 13:33:13 2025 +0200
Commit:     Michael Weghorn <[email protected]>
CommitDate: Mon Jun 30 19:33:41 2025 +0200

    svtools a11y: Drop SvtRulerAccessible::getLocale
    
    The base class implementation in OAccessible::getLocale
    already implements the same logic.
    
    Change-Id: Ia086b85551087b2f3d5d803f28bf3f481c94985b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187186
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/svtools/source/control/accessibleruler.cxx 
b/svtools/source/control/accessibleruler.cxx
index 145dc40d8726..cb1bfd5b11ac 100644
--- a/svtools/source/control/accessibleruler.cxx
+++ b/svtools/source/control/accessibleruler.cxx
@@ -131,21 +131,6 @@ sal_Int64 SAL_CALL 
SvtRulerAccessible::getAccessibleStateSet()
     return nStateSet;
 }
 
-lang::Locale SAL_CALL SvtRulerAccessible::getLocale()
-{
-    SolarMutexGuard aSolarGuard;
-
-    if( mxParent.is() )
-    {
-        uno::Reference< XAccessibleContext >    xParentContext( 
mxParent->getAccessibleContext() );
-        if( xParentContext.is() )
-            return xParentContext->getLocale();
-    }
-
-    //  No parent.  Therefore throw exception to indicate this cluelessness.
-    throw IllegalAccessibleComponentStateException();
-}
-
 void SAL_CALL SvtRulerAccessible::grabFocus()
 {
     SolarMutexGuard aSolarGuard;
diff --git a/svtools/source/control/accessibleruler.hxx 
b/svtools/source/control/accessibleruler.hxx
index 5eebef4aa5a5..6f3c546ed93b 100644
--- a/svtools/source/control/accessibleruler.hxx
+++ b/svtools/source/control/accessibleruler.hxx
@@ -77,9 +77,6 @@ public:
     virtual sal_Int64 SAL_CALL
         getAccessibleStateSet() override;
 
-    virtual css::lang::Locale SAL_CALL
-        getLocale() override;
-
 protected:
     virtual css::awt::Rectangle implGetBounds() override;
 

Reply via email to