summaryrefslogtreecommitdiff
path: root/desktop/source/lib
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-12 15:00:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-12 20:21:22 +0200
commit6e21f5a6b71790b3a36f67c3915b07a5f5717bcf (patch)
tree9d0c08cf449fa574dcce1b23af30a71dac9c4376 /desktop/source/lib
parent164ec9281aa57d52763e9622adb6e2e37d14bff8 (diff)
loplugin:unusedmethods
Change-Id: Ifd3a1ccef68ebc4cd4e7785357e6a476f6669eb8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123456 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/lib')
-rw-r--r--desktop/source/lib/init.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index d74e253b2298..60e025e3e371 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2113,28 +2113,6 @@ bool CallbackFlushHandler::removeAll(int type, const std::function<bool (const C
return bErased;
}
-bool CallbackFlushHandler::removeAll(const std::function<bool (int, const CallbackData&)>& rTestFunc)
-{
- bool bErased = false;
- auto it1 = m_queue1.begin();
- auto it2 = m_queue2.begin();
- while (it1 != m_queue1.end())
- {
- if (rTestFunc(*it1, *it2))
- {
- it1 = m_queue1.erase(it1);
- it2 = m_queue2.erase(it2);
- bErased = true;
- }
- else
- {
- ++it1;
- ++it2;
- }
- }
- return bErased;
-}
-
void CallbackFlushHandler::addViewStates(int viewId)
{
const auto& result = m_viewStates.emplace(viewId, decltype(m_viewStates)::mapped_type());