From 73e6a7975b3508c5cfccb3df7c35b0303f87d9bb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Mar 2018 09:35:22 +0200 Subject: loplugin:unusedmethods Change-Id: I7805ac9bc6f8c0aa5ba4804777e7d7c2c29a78f3 Reviewed-on: https://gerrit.libreoffice.org/52066 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/items/frmitems.cxx | 7 ------- editeng/source/items/paraitem.cxx | 24 ------------------------ 2 files changed, 31 deletions(-) (limited to 'editeng') 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(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(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; -- cgit