From 42fd77b836d7569ceddafb765978aeaeaeb86c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sun, 24 Sep 2017 10:28:47 +0200 Subject: [PATCH] Drop unused method Workspace::waitForCompositingSetup Seems to have been used in old compositing kcm, documented as DBus API. But Workspace doesn't expose a DBus interface anymore and our new DBus interface does not call this method -> it is dead. --- workspace.cpp | 18 ------------------ workspace.h | 1 - 2 files changed, 19 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index c38c6029c2..ebd660d4f9 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -803,24 +803,6 @@ void Workspace::reconfigure() reconfigureTimer.start(200); } -/** - * This D-Bus call is used by the compositing kcm. Since the reconfigure() - * D-Bus call delays the actual reconfiguring, it is not possible to immediately - * call compositingActive(). Therefore the kcm will instead call this to ensure - * the reconfiguring has already happened. - */ -bool Workspace::waitForCompositingSetup() -{ - if (reconfigureTimer.isActive()) { - reconfigureTimer.stop(); - slotReconfigure(); - } - if (m_compositor) { - return m_compositor->isActive(); - } - return false; -} - /** * Reread settings */ diff --git a/workspace.h b/workspace.h index 7b55c75939..0e702453be 100644 --- a/workspace.h +++ b/workspace.h @@ -301,7 +301,6 @@ public: SessionInfo* takeSessionInfo(Client*); // D-Bus interface - bool waitForCompositingSetup(); QString supportInformation() const; void setCurrentScreen(int new_screen);