sw/source/core/crsr/crstrvl.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 2b25dac755fbad79a9f30a7295a6e5cf0414d38c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Aug 29 21:04:46 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Aug 30 09:54:31 2022 +0200

    cid#1512492 Logically dead code
    
    Change-Id: Ibb003782d8ea47a2318959f4d8b6aa11e0e874c2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139013
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 4065458a9a1c..b2e432d53965 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -566,9 +566,6 @@ bool SwCursorShell::GotoNxtPrvTOXMark( bool bNext )
         }
     } while ( !bFnd );
 
-    if( !bFnd )
-        return false;
-
     CurrShell aCurr( this );
     SwCallLink aLk( *this ); // watch Cursor-Moves
     SwCursorSaveState aSaveState( *m_pCurrentCursor );

Reply via email to