diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-12-14 12:39:39 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-12-17 07:28:55 +0100 |
commit | affc33a42bddf3b1b7b2a2b1bc06020acca466db (patch) | |
tree | 148a9ba71126306b8b1ff689a7123393a656240d /src/client/qwaylanddisplay.cpp | |
parent | a724310684d421e66237fb61e3a1fe606fc45a65 (diff) | |
download | qtwayland-affc33a42bddf3b1b7b2a2b1bc06020acca466db.tar.gz |
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>
Diffstat (limited to 'src/client/qwaylanddisplay.cpp')
-rw-r--r-- | src/client/qwaylanddisplay.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp index e759c5d6..d39b2569 100644 --- a/src/client/qwaylanddisplay.cpp +++ b/src/client/qwaylanddisplay.cpp @@ -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(); |