summaryrefslogtreecommitdiff
path: root/forms/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-01 15:40:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-01 20:50:11 +0200
commit52942df3125d8ea3725f2847695cf7281bb4580b (patch)
tree81f6465df247d5ef23d6fba37b5a7a63b3b3d492 /forms/source
parentdd58b893f0734916919b14dcfc9941bb9dc3575b (diff)
remove some dead code
ever since commit 9c92eb6800468de34c5aec3690c1b990a4e763c9 Author: Noel Grandin <noel.grandin@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.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source')
-rw-r--r--forms/source/misc/limitedformats.cxx7
1 files changed, 1 insertions, 6 deletions
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)