diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-18 09:57:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-18 15:19:04 +0200 |
commit | 5d86154f49d713dada4aaa541755076cfeefa2c6 (patch) | |
tree | 25c34f4a032526de9798e6f3a69a76d993d739db /unotools | |
parent | 469892f65d9717fcee7996a040b32d713a83b412 (diff) |
loplugin:unusedfields improve search for unused collection fields
look for collection-like fields that are never added to, and are
therefore effectively unused
Change-Id: Id52c5500ea5e3d2436fb5915aebb86278bf2d925
Reviewed-on: https://gerrit.libreoffice.org/60661
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/eventcfg.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx index 93c74e23f7c4..85ca9b2862f8 100644 --- a/unotools/source/config/eventcfg.cxx +++ b/unotools/source/config/eventcfg.cxx @@ -85,7 +85,6 @@ class GlobalEventConfig_Impl : public utl::ConfigItem { private: EventBindingHash m_eventBindingHash; - FrameVector m_lFrames; SupportedEventsVector m_supportedEvents; void initBindingInfo(); @@ -154,20 +153,6 @@ void GlobalEventConfig_Impl::Notify( const Sequence< OUString >& ) MutexGuard aGuard( GlobalEventConfig::GetOwnStaticMutex() ); initBindingInfo(); - - // don't forget to update all existing frames and her might cached dispatch objects! - // But look for already killed frames. We hold weak references instead of hard ones ... - for (FrameVector::iterator pIt = m_lFrames.begin(); pIt != m_lFrames.end(); ) - { - css::uno::Reference< css::frame::XFrame > xFrame(pIt->get(), css::uno::UNO_QUERY); - if (xFrame.is()) - { - xFrame->contextChanged(); - ++pIt; - } - else - pIt = m_lFrames.erase(pIt); - } } // public method |