diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-11 12:45:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-13 07:05:10 +0100 |
commit | 3eb694a2ba080095bc1ac2e3bcea61aa6881bee7 (patch) | |
tree | 7f96527d7a8c489e9ee346283785e3018861cf73 /desktop | |
parent | afad9ccb381a02b90654a5fa302480e46f38a1fc (diff) |
loplugin:unusedfields
Change-Id: I28c8d60543d85ea878698a3e3661bbd5891ad9c7
Reviewed-on: https://gerrit.libreoffice.org/85075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/inc/lib/init.hxx | 1 | ||||
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 5957f56ed344..befb378f430d 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -140,7 +140,6 @@ namespace desktop { LibreOfficeKitCallback m_pCallback; void *m_pData; int m_nDisableCallbacks; - bool m_bEventLatch; std::mutex m_mutex; }; diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index bd11c2ad6fc7..8fe8d2c7cf10 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1085,8 +1085,7 @@ CallbackFlushHandler::CallbackFlushHandler(LibreOfficeKitDocument* pDocument, Li m_pDocument(pDocument), m_pCallback(pCallback), m_pData(pData), - m_nDisableCallbacks(0), - m_bEventLatch(false) + m_nDisableCallbacks(0) { SetPriority(TaskPriority::POST_PAINT); @@ -1673,7 +1672,7 @@ void CallbackFlushHandler::Invoke() { comphelper::ProfileZone aZone("CallbackFlushHander::Invoke"); - if (m_pCallback && !m_bEventLatch) + if (m_pCallback) { std::scoped_lock<std::mutex> lock(m_mutex); |