forms/source/misc/limitedformats.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 52942df3125d8ea3725f2847695cf7281bb4580b Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Oct 1 15:40:50 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Oct 1 20:50:11 2024 +0200 remove some dead code ever since commit 9c92eb6800468de34c5aec3690c1b990a4e763c9 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Mon May 13 15:42:27 2024 +0200 createFromAscii -> OUString literals in OLimitedFormats Change-Id: Ic0ab48b13be3799ca5b3b20b9aa8289d8bee03f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174353 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/forms/source/misc/limitedformats.cxx b/forms/source/misc/limitedformats.cxx index 628a42c55892..e14a2e5146ab 100644 --- a/forms/source/misc/limitedformats.cxx +++ b/forms/source/misc/limitedformats.cxx @@ -280,6 +280,7 @@ namespace frm _rConvertedValue.clear(); _rOldValue <<= pFormats[nOldEnumValue].nKey; + bool bModified = false; bool bFoundIt = false; // look for the entry with the given format key @@ -296,12 +297,6 @@ namespace frm ++nTablePosition; } - if (!_rOldValue.hasValue()) - { // did not reach the end of the table (means we found nNewFormat) - // -> go to the end to ensure that _rOldValue is set - _rOldValue <<= pFormats[nOldEnumValue].nKey; - } - OSL_ENSURE(_rOldValue.hasValue(), "OLimitedFormats::convertFormatKeyPropertyValue: did not find the old enum value in the table!"); if (!bFoundIt)