diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 09:35:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 14:45:43 +0200 |
commit | 73e6a7975b3508c5cfccb3df7c35b0303f87d9bb (patch) | |
tree | 0b9a2c93b1db01dd476be1479022ac5066980db9 /editeng | |
parent | 3138abfb052a4241cfca4b8d430c139cca50a85c (diff) |
loplugin:unusedmethods
Change-Id: I7805ac9bc6f8c0aa5ba4804777e7d7c2c29a78f3
Reviewed-on: https://gerrit.libreoffice.org/52066
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 7 | ||||
-rw-r--r-- | editeng/source/items/paraitem.cxx | 24 |
2 files changed, 0 insertions, 31 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 7339035a6500..d6da0edc1bc6 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1317,13 +1317,6 @@ sal_uInt16 SvxShadowItem::GetValueCount() const return sal_uInt16(SvxShadowLocation::End); // SvxShadowLocation::BottomRight + 1 } -OUString SvxShadowItem::GetValueTextByPos( sal_uInt16 nPos ) const -{ - static_assert(SAL_N_ELEMENTS(RID_SVXITEMS_SHADOW) == size_t(SvxShadowLocation::End), "unexpected size"); - assert(nPos < sal_uInt16(SvxShadowLocation::End) && "enum overflow!"); - return EditResId(RID_SVXITEMS_SHADOW[nPos]); -} - sal_uInt16 SvxShadowItem::GetEnumValue() const { return static_cast<sal_uInt16>(GetLocation()); diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 39240e00f577..5b318a8b26c0 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -248,30 +248,6 @@ sal_uInt16 SvxLineSpacingItem::GetValueCount() const } -OUString SvxLineSpacingItem::GetValueTextByPos( sal_uInt16 nPos ) const -{ - //! load strings from resource - OUString aText; - switch ( static_cast<SvxSpecialLineSpace>(nPos) ) - { - case SvxSpecialLineSpace::User: - aText = "User"; - break; - case SvxSpecialLineSpace::OneLine: - aText = "One line"; - break; - case SvxSpecialLineSpace::OnePointFiveLines: - aText = "1.5 line"; - break; - case SvxSpecialLineSpace::TwoLines: - aText = "Two lines"; - break; - default: break; - } - return aText; -} - - sal_uInt16 SvxLineSpacingItem::GetEnumValue() const { SvxSpecialLineSpace nVal; |