From 0d02e70d4a8a6bade5c9699da69219a31ca412b1 Mon Sep 17 00:00:00 2001 From: Christian Aguilera Date: Thu, 17 Jan 2019 22:23:07 +0000 Subject: [PATCH] Removed all references to GameListModel from the Settings component. --- Source/Core/DolphinQt/Settings.cpp | 7 ------- Source/Core/DolphinQt/Settings.h | 3 --- Source/Core/DolphinQt/Settings/InterfacePane.cpp | 1 - 3 files changed, 11 deletions(-) diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp index 6cb3435bf5..20ab451342 100644 --- a/Source/Core/DolphinQt/Settings.cpp +++ b/Source/Core/DolphinQt/Settings.cpp @@ -24,7 +24,6 @@ #include "Core/NetPlayClient.h" #include "Core/NetPlayServer.h" -#include "DolphinQt/GameList/GameListModel.h" #include "DolphinQt/QtUtils/QueueOnObject.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" @@ -296,12 +295,6 @@ void Settings::SetLogConfigVisible(bool visible) } } -GameListModel* Settings::GetGameListModel() const -{ - static GameListModel* model = new GameListModel; - return model; -} - std::shared_ptr Settings::GetNetPlayClient() { return m_client; diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h index eb7f7ab4ae..d1c2f38a20 100644 --- a/Source/Core/DolphinQt/Settings.h +++ b/Source/Core/DolphinQt/Settings.h @@ -26,7 +26,6 @@ class NetPlayClient; class NetPlayServer; } // namespace NetPlay -class GameListModel; class InputConfig; // UI settings to be stored in the config directory. @@ -143,8 +142,6 @@ public: bool IsAnalyticsEnabled() const; void SetAnalyticsEnabled(bool enabled); - // Other - GameListModel* GetGameListModel() const; signals: void ConfigChanged(); void EmulationStateChanged(Core::State new_state); diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp index 4b629686d2..3061c728bd 100644 --- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp +++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp @@ -23,7 +23,6 @@ #include "Core/Config/UISettings.h" #include "Core/ConfigManager.h" -#include "DolphinQt/GameList/GameListModel.h" #include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/Settings.h"