summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-11 08:07:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-03-11 08:07:05 +0100
commit52bd453eceea7dfb425e5e58b93244214dad29c2 (patch)
treefffa8ab82bb86a032bbf737cc5ba96242a401d48
parent3ccc4c123f5e78e0204d11abeab2d1a74278ca3e (diff)
Remove redundant check
The precondition `nIndex >= 0` is already asserted at the top of the function. Change-Id: I7436ce923b19aa81f08d1fb20680308f609d2242
-rw-r--r--sal/rtl/strtmpl.hxx7
1 files changed, 0 insertions, 7 deletions
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)
{