Remove some dead code
The waitForScreens() function has not been used for a while, so to avoid confusion around the different entry points to event processing, we remove it. Change-Id: I3a801492ab87b4835e0e1b3c9e264c29c1688c06 Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
0936d81b79
commit
aa793867b0
@ -322,25 +322,6 @@ void QWaylandDisplay::handleScreenInitialized(QWaylandScreen *screen)
|
||||
}
|
||||
}
|
||||
|
||||
void QWaylandDisplay::waitForScreens()
|
||||
{
|
||||
flushRequests();
|
||||
|
||||
while (true) {
|
||||
bool screensReady = !mScreens.isEmpty();
|
||||
|
||||
for (int ii = 0; screensReady && ii < mScreens.count(); ++ii) {
|
||||
if (mScreens.at(ii)->geometry() == QRect(0, 0, 0, 0))
|
||||
screensReady = false;
|
||||
}
|
||||
|
||||
if (!screensReady)
|
||||
blockingReadEvents();
|
||||
else
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void QWaylandDisplay::registry_global(uint32_t id, const QString &interface, uint32_t version)
|
||||
{
|
||||
struct ::wl_registry *registry = object();
|
||||
|
@ -224,7 +224,6 @@ public slots:
|
||||
void flushRequests();
|
||||
|
||||
private:
|
||||
void waitForScreens();
|
||||
void checkError() const;
|
||||
|
||||
void handleWaylandSync();
|
||||
|
Loading…
x
Reference in New Issue
Block a user