From 19bce49aaa510e6d10647a71dc2ef36537e51847 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.8 6.5 Change-Id: I7890c386e50733aefbba57ed9f6df09763c54bc3 Reviewed-by: Laszlo Agocs --- 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 5c74a3fd4ff..bb9076634da 100644 --- a/src/plugins/platforms/eglfs/api/qeglfswindow.cpp +++ b/src/plugins/platforms/eglfs/api/qeglfswindow.cpp @@ -64,9 +64,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.