From 75ddf3a22aa83d1b067085bd7132acab5a088856 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Jun 2017 14:20:39 +0200 Subject: loplugin:unusedfields in cui Change-Id: I6d3ef43ab915d65794f1052f1f184eda10d39e1a Reviewed-on: https://gerrit.libreoffice.org/39136 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- cui/source/customize/acccfg.cxx | 13 ------------- cui/source/customize/cfgutil.cxx | 8 -------- cui/source/customize/eventdlg.cxx | 4 ---- cui/source/customize/eventdlg.hxx | 2 -- 4 files changed, 27 deletions(-) (limited to 'cui/source/customize') diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index b80b6e054455..23bb736d3319 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -720,8 +720,6 @@ void SfxAccCfgTabListBox_Impl::KeyInput(const KeyEvent& aKey) SfxAcceleratorConfigPage::SfxAcceleratorConfigPage( vcl::Window* pParent, const SfxItemSet& aSet ) : SfxTabPage(pParent, "AccelConfigPage", "cui/ui/accelconfigpage.ui", &aSet) , m_pMacroInfoItem() - , m_pStringItem() - , m_pFontItem() , m_pFileDlg(nullptr) , aLoadAccelConfigStr(CuiResId(RID_SVXSTR_LOADACCELCONFIG)) , aSaveAccelConfigStr(CuiResId(RID_SVXSTR_SAVEACCELCONFIG)) @@ -923,7 +921,6 @@ void SfxAcceleratorConfigPage::Init(const uno::ReferencegetModel(); m_aStylesInfo.init(m_sModuleLongName, xModel); - m_pFunctionBox->SetStylesInfo(&m_aStylesInfo); m_pGroupLBox->SetStylesInfo(&m_aStylesInfo); m_bStylesInfoInitialized = true; } @@ -1429,16 +1426,6 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet* rSet ) m_pMacroInfoItem = &dynamic_cast(*pMacroItem); m_pGroupLBox->SelectMacro( m_pMacroInfoItem ); } - else - { - const SfxPoolItem* pStringItem=nullptr; - if( SfxItemState::SET == rSet->GetItemState( SID_CHARMAP, true, &pStringItem ) ) - m_pStringItem = dynamic_cast( pStringItem ); - - const SfxPoolItem* pFontItem=nullptr; - if( SfxItemState::SET == rSet->GetItemState( SID_ATTR_SPECIALCHAR, true, &pFontItem ) ) - m_pFontItem = dynamic_cast( pFontItem ); - } } diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 6e2019ba1ce8..37567adb9591 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -249,7 +249,6 @@ std::vector< SfxStyleInfo_Impl > SfxStylesInfo_Impl::getStyles(const OUString& s SfxConfigFunctionListBox::SfxConfigFunctionListBox(vcl::Window* pParent, WinBits nStyle) : SvTreeListBox( pParent, nStyle ) - , pStylesInfo( nullptr ) { SetStyle( GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL | WB_SORT ); GetModel()->SetSortMode( SortAscending ); @@ -360,11 +359,6 @@ OUString SfxConfigFunctionListBox::GetCurLabel() return pData->sCommand; } -void SfxConfigFunctionListBox::SetStylesInfo(SfxStylesInfo_Impl* pStyles) -{ - pStylesInfo = pStyles; -} - struct SvxConfigGroupBoxResource_Impl { Image m_hdImage; @@ -1046,7 +1040,6 @@ void SfxConfigGroupListBox::RequestingChildren( SvTreeListEntry *pEntry ) */ { SfxGroupInfo_Impl *pInfo = static_cast(pEntry->GetUserData()); - pInfo->bWasOpened = true; switch ( pInfo->nKind ) { case SfxCfgKind::GROUP_SCRIPTCONTAINER: @@ -1212,7 +1205,6 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog( xModel = xController->getModel(); m_aStylesInfo.init(aModuleName, xModel); - m_pCommands->SetStylesInfo(&m_aStylesInfo); m_pCategories->SetStylesInfo(&m_aStylesInfo); UpdateUI(); diff --git a/cui/source/customize/eventdlg.cxx b/cui/source/customize/eventdlg.cxx index 4053836ce02d..78bbdf3d95f3 100644 --- a/cui/source/customize/eventdlg.cxx +++ b/cui/source/customize/eventdlg.cxx @@ -58,7 +58,6 @@ SvxEventConfigPage::SvxEventConfigPage(vcl::Window *pParent, const SfxItemSet& r SvxEventConfigPage::EarlyInit) : SvxMacroTabPage_(pParent, "EventsConfigPage", "cui/ui/eventsconfigpage.ui", rSet) - , bAppConfig(true) { get(m_pSaveInListBox, "savein"); @@ -157,8 +156,6 @@ void SvxEventConfigPage::ImplInitDocument() m_pSaveInListBox->SetEntryData( nPos, new bool(false) ); m_pSaveInListBox->SelectEntryPos( nPos ); - - bAppConfig = false; } } catch( const uno::Exception& ) @@ -173,7 +170,6 @@ IMPL_LINK_NOARG( SvxEventConfigPage, SelectHdl_Impl, ListBox&, void ) m_pSaveInListBox->GetSelectEntryPos())); mpImpl->pEventLB->SetUpdateMode( false ); - bAppConfig = *bApp; if ( *bApp ) { SetReadOnly( false ); diff --git a/cui/source/customize/eventdlg.hxx b/cui/source/customize/eventdlg.hxx index 764972a0c8a0..0b0a00b50976 100644 --- a/cui/source/customize/eventdlg.hxx +++ b/cui/source/customize/eventdlg.hxx @@ -35,8 +35,6 @@ class SvxEventConfigPage : public SvxMacroTabPage_ css::uno::Reference< css::container::XNameReplace > m_xDocumentEvents; css::uno::Reference< css::util::XModifiable > m_xDocumentModifiable; - bool bAppConfig; - DECL_LINK( SelectHdl_Impl, ListBox&, void ); SvxEventConfigPage (const SvxEventConfigPage &) = delete; -- cgit