summaryrefslogtreecommitdiff
path: root/desktop
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
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')
-rw-r--r--desktop/inc/lib/init.hxx1
-rw-r--r--desktop/source/lib/init.cxx22
2 files changed, 0 insertions, 23 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index 95468b494189..291dbff069bb 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -130,7 +130,6 @@ namespace desktop {
private:
bool removeAll(int type);
bool removeAll(int type, const std::function<bool (const CallbackData&)>& rTestFunc);
- bool removeAll(const std::function<bool (int, const CallbackData&)>& rTestFunc);
bool processInvalidateTilesEvent(int type, CallbackData& aCallbackData);
bool processWindowEvent(int type, CallbackData& aCallbackData);
queue_type2::iterator toQueue2(queue_type1::iterator);
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());