From 25e85ec45fe5ca00c90fab4ab764f46117fbcb24 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 26 Oct 2021 13:48:20 +0200 Subject: [PATCH] Remove unused statements in QWindow Change-Id: I91f0d23d22923f7c2b8c9099371288d226d541c6 Reviewed-by: Volker Hilsheimer --- src/gui/kernel/qwindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 631b1fe723..70d7730d81 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -247,7 +247,6 @@ void QWindowPrivate::init(QScreen *targetScreen) // before the screen list is populated. if (Q_UNLIKELY(!parentWindow && !topLevelScreen)) { qFatal("Cannot create window: no screens available"); - exit(1); } QGuiApplicationPrivate::window_list.prepend(q); @@ -332,7 +331,6 @@ void QWindow::setVisibility(Visibility v) break; default: Q_ASSERT(false); - break; } }