Remove unused statements in QWindow
Change-Id: I91f0d23d22923f7c2b8c9099371288d226d541c6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
cdf8fd5e86
commit
25e85ec45f
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user