diff options
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 22 |
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()); |