From 7f56183c5414de5f2ad141336fc2c918fa4e387e Mon Sep 17 00:00:00 2001 From: SamuelFontes Date: Tue, 13 Aug 2024 16:04:49 -0300 Subject: [PATCH] Removed unused size checking on GetPhysicalDevices The method is only being called once so this doesn't make sense. It was some left over of me trying to get this done some other way. --- src/qt_gui/main_window.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index 9e9f17bb6..d9bc1580a 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -161,7 +161,6 @@ void MainWindow::LoadGameLists() { } void MainWindow::GetPhysicalDevices() { - if (m_physical_devices.size() == 0) { Vulkan::Instance instance(false, false); auto physical_devices = instance.GetPhysicalDevices(); for (const vk::PhysicalDevice physical_device : physical_devices) { @@ -173,7 +172,6 @@ void MainWindow::GetPhysicalDevices() { m_physical_devices.push_back(name); } } -} void MainWindow::CreateConnects() { connect(this, &MainWindow::WindowResized, this, &MainWindow::HandleResize);