diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-09-30 22:46:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-10-01 08:57:46 +0200 |
commit | f28473dd0aaab4aee3fbe60c915a554550c4d8b2 (patch) | |
tree | 426d2f4e033476561fcd4f70724ffd271a541823 /sd | |
parent | 3e9f0d6f6e99b064bf140212b33a8b6ebce91101 (diff) |
-Werror,-Wunused-private-field
Change-Id: I6dc2aaffc2fb018ed389312cbc0d37222a6df89a
Reviewed-on: https://gerrit.libreoffice.org/42979
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 22 | ||||
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.hxx | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 08e7cab09e6d..fcd11edcb44e 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -73,27 +73,6 @@ using namespace ::com::sun::star; using ::com::sun::star::uno::Reference; -namespace -{ - FieldUnit lcl_GetFieldUnit() - { - FieldUnit eUnit = FUNIT_CM; - const SfxPoolItem* pItem = nullptr; - SfxViewFrame* pCurrent = SfxViewFrame::Current(); - SfxItemState eState = pCurrent ? pCurrent->GetBindings().GetDispatcher()->QueryState(SID_ATTR_METRIC, pItem) : SfxItemState::UNKNOWN; - if (pItem && eState >= SfxItemState::DEFAULT) - { - eUnit = (FieldUnit)static_cast<const SfxUInt16Item*>( pItem )->GetValue(); - } - else - { - return SfxModule::GetCurrentFieldUnit(); - } - - return eUnit; - } -} - namespace sd { namespace sidebar { enum eFillStyle @@ -144,7 +123,6 @@ SlideBackground::SlideBackground( mbTitle(false), mpPageLRMarginItem( new SvxLongLRSpaceItem( 0, 0, SID_ATTR_PAGE_LRSPACE ) ), mpPageULMarginItem( new SvxLongULSpaceItem( 0, 0, SID_ATTR_PAGE_ULSPACE ) ), - meFieldUnit(lcl_GetFieldUnit()), m_nPageLeftMargin(0), m_nPageRightMargin(0), m_nPageTopMargin(0), diff --git a/sd/source/ui/sidebar/SlideBackground.hxx b/sd/source/ui/sidebar/SlideBackground.hxx index 804b6571b20d..ce00b6716b01 100644 --- a/sd/source/ui/sidebar/SlideBackground.hxx +++ b/sd/source/ui/sidebar/SlideBackground.hxx @@ -131,7 +131,6 @@ private: bool mbTitle; std::unique_ptr<SvxLongLRSpaceItem> mpPageLRMarginItem; std::unique_ptr<SvxLongULSpaceItem> mpPageULMarginItem; - FieldUnit meFieldUnit; long m_nPageLeftMargin; long m_nPageRightMargin; long m_nPageTopMargin; |