diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 11:23:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 12:06:47 +0200 |
commit | ea1839853fbdc49ead92a7cd465e427f4167cea2 (patch) | |
tree | 7df5b34bf3c7be380cf13a7ddf5a48021dd1951a /extensions/source/propctrlr/usercontrol.cxx | |
parent | 9ad9c5183f348384b62ec88459a3a5922e423d83 (diff) |
loplugin:unusedfields in editeng
Change-Id: I9806d87028a11a8103c35004c87b5098ca591409
Reviewed-on: https://gerrit.libreoffice.org/39495
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/propctrlr/usercontrol.cxx')
-rw-r--r-- | extensions/source/propctrlr/usercontrol.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index b05f78860d58..81c7ba7c70c1 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -173,8 +173,6 @@ namespace pcr :OFormattedNumericControl_Base( PropertyControlType::Unknown, pParent, nWinStyle ) { getTypedControlWindow()->TreatAsNumber(true); - - m_nLastDecimalDigits = getTypedControlWindow()->GetDecimalDigits(); } @@ -225,24 +223,6 @@ namespace pcr DBG_ASSERT( pEntry, "OFormattedNumericControl::SetFormatDescription: invalid format key!" ); if ( pEntry ) { - switch (pEntry->GetType() & ~css::util::NumberFormat::DEFINED) - { - case css::util::NumberFormat::NUMBER: - case css::util::NumberFormat::CURRENCY: - case css::util::NumberFormat::SCIENTIFIC: - case css::util::NumberFormat::FRACTION: - case css::util::NumberFormat::PERCENT: - m_nLastDecimalDigits = getTypedControlWindow()->GetDecimalDigits(); - break; - case css::util::NumberFormat::DATETIME: - case css::util::NumberFormat::DATE: - case css::util::NumberFormat::TIME: - m_nLastDecimalDigits = 7; - break; - default: - m_nLastDecimalDigits = 0; - break; - } bFallback = false; } @@ -253,7 +233,6 @@ namespace pcr getTypedControlWindow()->TreatAsNumber(false); getTypedControlWindow()->SetFormatter(nullptr); getTypedControlWindow()->SetText(""); - m_nLastDecimalDigits = 0; } } |