summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-02-22 19:13:42 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2022-02-23 05:59:36 +0100
commitd5c8888dedbf2241f9b09bbb5698f37c89f9510b (patch)
treef1e1c59aa890437ddb8db2284799a37cc699e145 /sal
parenta3f2def9359825cb022c6f989f10eb3168bafe27 (diff)
Drop obsolete code
Change-Id: Ia362d00c7637370f4dc967763892269909f06578 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130369 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/strtmpl.hxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx
index d3da51a60c48..271f70bc2e37 100644
--- a/sal/rtl/strtmpl.hxx
+++ b/sal/rtl/strtmpl.hxx
@@ -867,17 +867,8 @@ T toInt_WithLength ( const IMPL_RTL
sal_Int16 nMod;
if ( bNeg )
{
- nDiv = std::numeric_limits<T>::min() / nRadix;
- nMod = std::numeric_limits<T>::min() % nRadix;
- // Cater for C++03 implementations that round the quotient down
- // instead of truncating towards zero as mandated by C++11:
- if ( nMod > 0 )
- {
- --nDiv;
- nMod -= nRadix;
- }
- nDiv = -nDiv;
- nMod = -nMod;
+ nDiv = -(std::numeric_limits<T>::min() / nRadix);
+ nMod = -(std::numeric_limits<T>::min() % nRadix);
}
else
{