From d5c8888dedbf2241f9b09bbb5698f37c89f9510b Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 22 Feb 2022 19:13:42 +0100 Subject: [PATCH] Drop obsolete code Change-Id: Ia362d00c7637370f4dc967763892269909f06578 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130369 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sal/rtl/strtmpl.hxx | 13 ++----------- 1 file 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::min() / nRadix; - nMod = std::numeric_limits::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::min() / nRadix); + nMod = -(std::numeric_limits::min() % nRadix); } else { -- 2.11.4.GIT