summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-04-26 15:35:40 -0700
committerDentomologist <dentomologist@gmail.com>2023-04-27 16:50:56 -0700
commitb59ca9682ec179cff99c08a53ddcdecda9179a73 (patch)
tree561d73da7ae0d8e8c34b1fdb724c1d77ced7c37c /Source/Core/DolphinQt/MainWindow.cpp
parenta75d22d90142ab0fd74e25979fe45f5644164613 (diff)
Qt/GeneralWidget and GraphicsWidget: Remove unused member variable
m_xrr_config was used by the GeneralWidget::GetAvailableResolutions function to get the list of supported fullscreen resolutions when HAVE_XRANDR was set. aa4088a removed the ability to set that resolution in the UI, leaving the GetAvailableResolutions function unused. m_xrr_config is initialized in MainWindow which still uses it to toggle fullscreen, but the references in GeneralWidget and GraphicsWidget (which just ferried m_xrr_config from MainWindow to GeneralWidget) are now unnecessary and removed in this commit.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 3c295c9d74..23c67e0306 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1282,10 +1282,8 @@ void MainWindow::ShowGraphicsWindow()
"display", windowHandle())),
winId());
}
- m_graphics_window = new GraphicsWindow(m_xrr_config.get(), this);
-#else
- m_graphics_window = new GraphicsWindow(nullptr, this);
#endif
+ m_graphics_window = new GraphicsWindow(this);
InstallHotkeyFilter(m_graphics_window);
}