diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 11:41:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-29 11:43:40 +0000 |
commit | 9bfd742d8cdc4aab3dd817f13ab4cfa5cc60ae12 (patch) | |
tree | 51815ec709869dd297c10b8359b3bc4736204a98 /svl/source | |
parent | cfaba15c589f882cc0bcce5cd07bdf3d30f547f6 (diff) |
loplugin:unusedmethods
Change-Id: Ib008613fb06c82791c63d5b074a3e2ff1c3607a0
Reviewed-on: https://gerrit.libreoffice.org/35834
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/aeitem.cxx | 24 | ||||
-rw-r--r-- | svl/source/items/cenumitm.cxx | 5 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 12 |
3 files changed, 0 insertions, 41 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index fdbca831c064..d50b77d85761 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -23,9 +23,6 @@ #include <cstddef> #include <vector> -SfxPoolItem* SfxAllEnumItem::CreateDefault() { return new SfxAllEnumItem; } - - struct SfxAllEnumValue_Impl { sal_uInt16 nValue; @@ -168,27 +165,6 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue ) pValues->insert(pValues->begin() + GetPosByValue_(nValue), aVal); // FIXME: Duplicates? } -void SfxAllEnumItem::DisableValue( sal_uInt16 nValue ) -{ - if ( !pDisabledValues ) - pDisabledValues = new std::vector<sal_uInt16>; - - pDisabledValues->push_back( nValue ); -} - -bool SfxAllEnumItem::IsEnabled( sal_uInt16 nValue ) const -{ - if ( pDisabledValues ) - { - for (sal_uInt16 nDisabledValue : *pDisabledValues) - if ( nDisabledValue == nValue ) - return false; - } - - return true; -} - - void SfxAllEnumItem::RemoveValue( sal_uInt16 nValue ) { sal_uInt16 nPos = GetPosByValue(nValue); diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx index 33b7853e563c..6c0dc09e6172 100644 --- a/svl/source/items/cenumitm.cxx +++ b/svl/source/items/cenumitm.cxx @@ -80,11 +80,6 @@ sal_uInt16 SfxEnumItemInterface::GetValueByPos(sal_uInt16 nPos) const return nPos; } -bool SfxEnumItemInterface::IsEnabled(sal_uInt16) const -{ - return true; -} - // virtual bool SfxEnumItemInterface::HasBoolValue() const { diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 294777360c2e..9dc90b41a4f5 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1971,18 +1971,6 @@ sal_uInt16 SvNumberFormatter::GetFormatPrecision( sal_uInt32 nFormat ) const return pFormatScanner->GetStandardPrec(); } -sal_uInt16 SvNumberFormatter::GetFormatPrecision( sal_uInt32 nFormat, double fValue ) const -{ - const SvNumberformat* pFormat = GetFormatEntry( nFormat ); - if ( pFormat ) - { - sal_uInt16 nIx = pFormat->GetSubformatIndex( fValue ); - return pFormat->GetFormatPrecision( nIx ); - } - else - return pFormatScanner->GetStandardPrec(); -} - sal_uInt16 SvNumberFormatter::GetFormatIntegerDigits( sal_uInt32 nFormat ) const { const SvNumberformat* pFormat = GetFormatEntry( nFormat ); |