summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qwindow.cpp
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2021-10-26 13:48:20 +0200
committerDavid Skoland <david.skoland@qt.io>2021-10-26 13:59:59 +0200
commit25e85ec45fe5ca00c90fab4ab764f46117fbcb24 (patch)
tree0d82783e42e654b6af2f846dc94104a1cd4ca22c /src/gui/kernel/qwindow.cpp
parentcdf8fd5e86f253680f61289ee6edaa0c4e54b267 (diff)
downloadqtbase-25e85ec45fe5ca00c90fab4ab764f46117fbcb24.tar.gz
Remove unused statements in QWindow
Change-Id: I91f0d23d22923f7c2b8c9099371288d226d541c6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r--src/gui/kernel/qwindow.cpp2
1 files changed, 0 insertions, 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;
}
}