[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Wed Mar 29 09:10:44 UTC 2017


 sw/source/core/access/acccontext.cxx |    8 --------
 sw/source/core/access/accframe.cxx   |    3 +--
 sw/source/core/access/accframe.hxx   |    3 ---
 3 files changed, 1 insertion(+), 13 deletions(-)

New commits:
commit f216d80d048fa4fedfdbdb0446b1521b0191b0cf
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Mar 29 09:14:39 2017 +0100

    m_bIsAccDocUse is write-only
    
    Change-Id: Ib0360ddaa21841b7e5921098d14029aec43cc371

diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index ee45f7317510..53d5d538a782 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -583,10 +583,6 @@ sal_Int32 SAL_CALL SwAccessibleContext::getAccessibleChildCount()
 
     ThrowIfDisposed();
 
-    //Notify the frame is a document
-    if (m_nRole == AccessibleRole::DOCUMENT_TEXT)
-        m_bIsAccDocUse = true;
-
     return m_isDisposing ? 0 : GetChildCount( *(GetMap()) );
 }
 
@@ -597,10 +593,6 @@ uno::Reference< XAccessible> SAL_CALL
 
     ThrowIfDisposed();
 
-    //Notify the frame is a document
-    if (m_nRole == AccessibleRole::DOCUMENT_TEXT)
-        m_bIsAccDocUse = true;
-
     const SwAccessibleChild aChild( GetChild( *(GetMap()), nIndex ) );
     if( !aChild.IsValid() )
     {
diff --git a/sw/source/core/access/accframe.cxx b/sw/source/core/access/accframe.cxx
index 6133af4e1573..18f27ec241bd 100644
--- a/sw/source/core/access/accframe.cxx
+++ b/sw/source/core/access/accframe.cxx
@@ -415,8 +415,7 @@ SwAccessibleFrame::SwAccessibleFrame( const SwRect& rVisArea,
                                       bool bIsPagePreview ) :
     maVisArea( rVisArea ),
     mpFrame( pF ),
-    mbIsInPagePreview( bIsPagePreview ),
-    m_bIsAccDocUse( false )
+    mbIsInPagePreview( bIsPagePreview )
 {
 }
 
diff --git a/sw/source/core/access/accframe.hxx b/sw/source/core/access/accframe.hxx
index d7d064e626d0..1f1edc201b33 100644
--- a/sw/source/core/access/accframe.hxx
+++ b/sw/source/core/access/accframe.hxx
@@ -101,9 +101,6 @@ protected:
                        const SwFrame *pFrame,
                        bool bIsPagePreview );
     virtual ~SwAccessibleFrame();
-
-    // Move to private area?
-    bool m_bIsAccDocUse;
 public:
     // Return the SwFrame this context is attached to.
     const SwFrame* GetFrame() const { return mpFrame; };


More information about the Libreoffice-commits mailing list