sw/source/ui/config/optpage.cxx | 6 ------ sw/source/uibase/inc/optpage.hxx | 4 ---- 2 files changed, 10 deletions(-)
New commits: commit 52a9e4f0361e63f744e14f47c7c09b9407320c72 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Mar 25 14:17:22 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Mar 25 14:47:20 2022 +0100 loplugin:unusedfields Change-Id: Ic34f6ac671cd80375085a3c9f858854ff74e2db2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132116 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 374ba9c5bb2d..bfdbc877c869 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -507,9 +507,6 @@ SwStdFontTabPage::SwStdFontTabPage(weld::Container* pPage, weld::DialogControlle , m_bIdxDefault(false) , m_bSetIdxDefault(true) , m_bDisposePrinter(false) - , m_bListHeightDefault(false) - , m_bLabelHeightDefault(false) - , m_bIndexHeightDefault(false) , m_nFontGroup(FONT_GROUP_DEFAULT) , m_sScriptWestern(SwResId(ST_SCRIPT_WESTERN)) , m_sScriptAsian(SwResId(ST_SCRIPT_ASIAN)) @@ -847,7 +844,6 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet) const SvxFontHeightItem& rFontHeightList = static_cast<const SvxFontHeightItem&>(pColl->GetFormatAttr(nFontHeightWhich)); nListHeight = static_cast<sal_Int32>(rFontHeightList.GetHeight()); - m_bListHeightDefault = SfxItemState::DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, false); pColl = m_pWrtShell->GetTextCollFromPool(RES_POOLCOLL_LABEL); m_bLabelDefault = SfxItemState::DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, false); @@ -856,7 +852,6 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet) m_sShellLabel = sCapBackup = rFontCP.GetFamilyName(); const SvxFontHeightItem& rFontHeightLabel = static_cast<const SvxFontHeightItem&>(pColl->GetFormatAttr(nFontHeightWhich)); nLabelHeight = static_cast<sal_Int32>(rFontHeightLabel.GetHeight()); - m_bLabelHeightDefault = SfxItemState::DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, false); pColl = m_pWrtShell->GetTextCollFromPool(RES_POOLCOLL_REGISTER_BASE); m_bIdxDefault = SfxItemState::DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, false); @@ -865,7 +860,6 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet) m_sShellIndex = sIdxBackup = rFontIDX.GetFamilyName(); const SvxFontHeightItem& rFontHeightIndex = static_cast<const SvxFontHeightItem&>(pColl->GetFormatAttr(nFontHeightWhich)); nIndexHeight = static_cast<sal_Int32>(rFontHeightIndex.GetHeight()); - m_bIndexHeightDefault = SfxItemState::DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, false); } m_xStandardBox->set_entry_text(sStdBackup ); m_xTitleBox->set_entry_text(sOutBackup ); diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx index 99e24ed7f487..7bb77695140f 100644 --- a/sw/source/uibase/inc/optpage.hxx +++ b/sw/source/uibase/inc/optpage.hxx @@ -143,10 +143,6 @@ class SwStdFontTabPage final : public SfxTabPage bool m_bSetIdxDefault :1; bool m_bDisposePrinter :1; - bool m_bListHeightDefault :1; - bool m_bLabelHeightDefault :1; - bool m_bIndexHeightDefault :1; - sal_uInt8 m_nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL] OUString m_sScriptWestern;