diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-08 14:41:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-09 07:28:25 +0100 |
commit | 313744d4f23f242f5ee979d229fe394211ff7ffd (patch) | |
tree | 7c2e83e0eb5eb2b133c0eaa1a61bb179b554f14d /desktop | |
parent | ccb6b8967ce3d84bb141379e51a339544f753446 (diff) |
loplugin:unusedmethods
Change-Id: I242f56f2bc5dc8fce6db1ba8f1f8269da4fec0fa
Reviewed-on: https://gerrit.libreoffice.org/68938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_updatedialog.cxx | 47 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_updatedialog.hxx | 1 |
2 files changed, 0 insertions, 48 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index 47ebe701cd6b..fe8517de628d 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -942,53 +942,6 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index ) } -void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll ) -{ - OUString aExtensionID; - OUString aVersion; - - m_bModified = true; - - if ( pIndex->m_eKind == ENABLED_UPDATE ) - { - dp_gui::UpdateData aUpdData = m_enabledUpdates[ pIndex->m_nIndex ]; - aExtensionID = dp_misc::getIdentifier( aUpdData.aInstalledPackage ); - if ( !bIgnoreAll ) - aVersion = aUpdData.updateVersion; - } - else if ( pIndex->m_eKind == DISABLED_UPDATE ) - { - DisabledUpdate &rData = m_disabledUpdates[ pIndex->m_nIndex ]; - dp_misc::DescriptionInfoset aInfoset( m_context, rData.aUpdateInfo ); - ::boost::optional< OUString > aID( aInfoset.getIdentifier() ); - if ( aID ) - aExtensionID = *aID; - if ( !bIgnoreAll ) - aVersion = aInfoset.getVersion(); - } - - if ( !aExtensionID.isEmpty() ) - { - bool bFound = false; - for (auto const& ignoredUpdate : m_ignoredUpdates) - { - if ( ignoredUpdate->sExtensionID == aExtensionID ) - { - ignoredUpdate->sVersion = aVersion; - ignoredUpdate->bRemoved = !bIgnore; - bFound = true; - break; - } - } - if ( bIgnore && !bFound ) - { - IgnoredUpdate *pData = new IgnoredUpdate( aExtensionID, aVersion ); - m_ignoredUpdates.emplace_back( pData ); - } - } -} - - IMPL_LINK_NOARG(UpdateDialog, selectionHandler, weld::TreeView&, void) { OUStringBuffer b; diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx index b32797ee158a..106abf3dafff 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx @@ -102,7 +102,6 @@ private: sal_uInt16 insertItem(UpdateDialog::Index *pIndex, bool bEnableCheckBox); void addAdditional(UpdateDialog::Index *pIndex, bool bEnableCheckBox); bool isIgnoredUpdate( UpdateDialog::Index *pIndex ); - void setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll ); void addEnabledUpdate( OUString const & name, dp_gui::UpdateData const & data ); void addDisabledUpdate( UpdateDialog::DisabledUpdate const & data ); |