[kwin] Drop predicate based Workspace::forEachUnmanaged

Unused code.
This commit is contained in:
Martin Gräßlin 2014-03-20 08:00:29 +01:00
parent 12a4923959
commit 11d0176dc9

View file

@ -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<typename T1, typename T2> void forEachUnmanaged(T1 procedure, T2 predicate);
template<typename T> void forEachUnmanaged(T procedure);
void forEachUnmanaged(std::function<void (Unmanaged*)> 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<const Unmanaged*>(*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)
{