sw/source/core/table/swtable.cxx |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

New commits:
commit 6c3989b3a09c4b43c2c5f548c8ae9248db901dc6
Author:     Bjoern Michaelsen <bjoern.michael...@libreoffice.org>
AuthorDate: Mon Aug 7 10:42:35 2023 +0200
Commit:     Bjoern Michaelsen <bjoern.michael...@libreoffice.org>
CommitDate: Mon Aug 7 15:19:36 2023 +0200

    refactor: remove dead docnode hint code
    
    - the deleted code should not have side effects
    - it had been used to find an actual node to return in the hint before
      9b68ce7b0f2326ec540717ec5c8207825403774e, which removed the need to
      return the node
    
    Change-Id: I8f28765a5dd9355e7fdc7a7ff069a76b714287fc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155419
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Tested-by: Jenkins
    Reviewed-by: Bjoern Michaelsen <bjoern.michael...@libreoffice.org>

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 04d58363b97d..c111a86ccd58 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -2282,16 +2282,7 @@ bool SwTable::GetInfo( SfxPoolItem& rInfo ) const
         case RES_AUTOFMT_DOCNODE:
         {
             const SwTableNode* pNode = GetTableNode();
-            if (pNode && &pNode->GetNodes() == 
static_cast<SwAutoFormatGetDocNode&>(rInfo).pNodes)
-            {
-                if (!m_TabSortContentBoxes.empty())
-                {
-                    SwNodeIndex aIdx( *m_TabSortContentBoxes[0]->GetSttNd() );
-                    GetFrameFormat()->GetDoc()->GetNodes().GoNext( &aIdx );
-                }
-                return false;
-            }
-            break;
+            return !(pNode && &pNode->GetNodes() == 
static_cast<SwAutoFormatGetDocNode&>(rInfo).pNodes);
         }
         case RES_FINDNEARESTNODE:
             if( GetFrameFormat() &&

Reply via email to