From 11d0176dc9c68fa19291bba8d2ddefbed27fa2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 20 Mar 2014 08:00:29 +0100 Subject: [PATCH] [kwin] Drop predicate based Workspace::forEachUnmanaged Unused code. --- workspace.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/workspace.h b/workspace.h index 6d6569deb0..dce815aeec 100644 --- a/workspace.h +++ b/workspace.h @@ -84,8 +84,6 @@ public: * @return KWin::Unmanaged* Found Unmanaged or @c null if there is no Unmanaged with given Id. */ Unmanaged *findUnmanaged(xcb_window_t w) const; - template void forEachUnmanaged(T1 procedure, T2 predicate); - template void forEachUnmanaged(T procedure); void forEachUnmanaged(std::function func); QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const; @@ -697,20 +695,6 @@ inline void Workspace::forEachClient(T procedure) return forEachClient(procedure, TruePredicate()); } -template< typename T1, typename T2 > -inline void Workspace::forEachUnmanaged(T1 procedure, T2 predicate) -{ - for (UnmanagedList::ConstIterator it = unmanaged.constBegin(); it != unmanaged.constEnd(); ++it) - if (predicate(const_cast(*it))) - procedure(*it); -} - -template< typename T > -inline void Workspace::forEachUnmanaged(T procedure) -{ - return forEachUnmanaged(procedure, TruePredicate()); -} - inline void Workspace::forEachUnmanaged(std::function< void (Unmanaged*) > func) {