sw/source/core/access/accmap.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit f16f694168b9df555bd93465b0202ed1141fd13d
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon Apr 14 11:52:22 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Apr 15 00:16:59 2025 +0200

    sw a11y: Drop always empty Reference
    
    Ever since the code was added in
    
        commit 5713ed46fa18c274b926dad2a524b66a9538c564
        Author: Michael Brauer <m...@openoffice.org>
        Date:   Mon May 6 11:26:27 2002 +0000
    
            95586#: accessible shapes started
    
    , `xOldCursorAcc` never gets assigned, so drop
    it and the unused code that would only do something
    if it were non-empty.
    
    Change-Id: I5ad3c5f5e6103416fd828324b55783eaf68d61a0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184139
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 4fb40faee662..67f8f0681370 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -1910,7 +1910,6 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext(
     DBG_TESTSOLARMUTEX();
 
     rtl::Reference < ::accessibility::AccessibleShape > xAcc;
-    uno::Reference < XAccessible > xOldCursorAcc;
 
     if( !mpShapeMap && bCreate )
         mpShapeMap.reset(new SwAccessibleShapeMap_Impl( this ));
@@ -1953,10 +1952,6 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext(
         }
     }
 
-    // Invalidate focus for old object when map is not locked
-    if( xOldCursorAcc.is() )
-        InvalidateCursorPosition( xOldCursorAcc );
-
     return xAcc;
 }
 

Reply via email to