[kwin] Drop predicate based Workspace::forEachUnmanaged
Unused code.
This commit is contained in:
parent
12a4923959
commit
11d0176dc9
1 changed files with 0 additions and 16 deletions
16
workspace.h
16
workspace.h
|
@ -84,8 +84,6 @@ public:
|
||||||
* @return KWin::Unmanaged* Found Unmanaged or @c null if there is no Unmanaged with given Id.
|
* @return KWin::Unmanaged* Found Unmanaged or @c null if there is no Unmanaged with given Id.
|
||||||
*/
|
*/
|
||||||
Unmanaged *findUnmanaged(xcb_window_t w) const;
|
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);
|
void forEachUnmanaged(std::function<void (Unmanaged*)> func);
|
||||||
|
|
||||||
QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const;
|
QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const;
|
||||||
|
@ -697,20 +695,6 @@ inline void Workspace::forEachClient(T procedure)
|
||||||
return forEachClient(procedure, TruePredicate());
|
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
|
inline
|
||||||
void Workspace::forEachUnmanaged(std::function< void (Unmanaged*) > func)
|
void Workspace::forEachUnmanaged(std::function< void (Unmanaged*) > func)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue