sal/rtl/strtmpl.hxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 52bd453eceea7dfb425e5e58b93244214dad29c2
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Mar 11 08:07:05 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Mar 11 08:07:05 2022 +0100

    Remove redundant check
    
    The precondition `nIndex >= 0` is already asserted at the top of the 
function.
    
    Change-Id: I7436ce923b19aa81f08d1fb20680308f609d2242

diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx
index 07ea6d6cbba8..9fa05af4526d 100644
--- a/sal/rtl/strtmpl.hxx
+++ b/sal/rtl/strtmpl.hxx
@@ -1145,13 +1145,6 @@ void newReplaceStrAt                                ( 
IMPL_RTL_STRINGDATA** ppTh
         return;
     }
 
-    /* negative index? */
-    if (nIndex < 0)
-    {
-        nCount -= nIndex;
-        nIndex = 0;
-    }
-
     /* not more than the String length could be deleted */
     if (nCount >= pStr->length-nIndex)
     {

Reply via email to