From 5bf98dd16c4a54aa2445cf3d226f1db4f8cc6a75 Mon Sep 17 00:00:00 2001 From: Christopher Sherlock Date: Wed, 15 Apr 2026 22:20:22 +1000 Subject: [PATCH] vcl: remove dead code if (bOverflow) { const auto [n2, n3] = o3tl::getConversionMulDiv(eFrom, eTo); BigInt a4 = n1; a4 *= n2; } this does... nothing at all. Change-Id: Ia47a8f80d6de8a981d71301454f1ffe4feb587f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203681 Reviewed-by: Dan Williams Tested-by: Jenkins --- vcl/source/outdev/map.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index 377742835de2..9ebba821c0bd 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -957,12 +957,6 @@ static tools::Long lcl_convertLogicValue(const tools::Long n1, const o3tl::Lengt bool bOverflow; const auto nResult = o3tl::convert(n1, eFrom, eTo, bOverflow); - if (bOverflow) - { - const auto [n2, n3] = o3tl::getConversionMulDiv(eFrom, eTo); - BigInt a4 = n1; - a4 *= n2; - } if (!bOverflow) return nResult;