From 5ed1f61c5680d56404b5cd111104d551456076c9 Mon Sep 17 00:00:00 2001 From: Inho Lee Date: Mon, 18 Nov 2024 08:10:00 +0100 Subject: [PATCH] qpa eglfs: remove unreachable if statement There is the same return-statement right before. Pick-to: 6.5 Change-Id: I7890c386e50733aefbba57ed9f6df09763c54bc3 Reviewed-by: Laszlo Agocs (cherry picked from commit 19bce49aaa510e6d10647a71dc2ef36537e51847) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/eglfs/api/qeglfswindow.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/platforms/eglfs/api/qeglfswindow.cpp b/src/plugins/platforms/eglfs/api/qeglfswindow.cpp index 306d121cfb7..e9f15aaebdc 100644 --- a/src/plugins/platforms/eglfs/api/qeglfswindow.cpp +++ b/src/plugins/platforms/eglfs/api/qeglfswindow.cpp @@ -66,9 +66,6 @@ void QEglFSWindow::create() m_flags = Created; - if (window()->type() == Qt::Desktop) - return; - // Stop if there is already a window backed by a native window and surface. Additional // raster windows will not have their own native window, surface and context. Instead, // they will be composited onto the root window's surface.