Revert "Qt: Ensure action set is clean before (re)building"

This reverts commit 3ee12b1a55.
This commit is contained in:
Vicki Pfau 2023-09-24 21:04:59 -07:00
parent 7de02c9949
commit 4215332eb4
3 changed files with 0 additions and 10 deletions

View File

@ -220,10 +220,6 @@ void ConfigController::updateOption(const char* key) {
m_optionSet[optionName]->setValue(mCoreConfigGetValue(&m_config, key));
}
void ConfigController::clearOptions() {
m_optionSet.clear();
}
QString ConfigController::getOption(const char* key, const QVariant& defaultVal) const {
const char* val = mCoreConfigGetValue(&m_config, key);
if (val) {

View File

@ -80,7 +80,6 @@ public:
ConfigOption* addOption(const char* key);
void updateOption(const char* key);
void clearOptions();
QString getOption(const char* key, const QVariant& defaultVal = QVariant()) const;
QString getOption(const QString& key, const QVariant& defaultVal = QVariant()) const;

View File

@ -1261,11 +1261,6 @@ void Window::setupMenu(QMenuBar* menubar) {
installEventFilter(m_shortcutController);
menubar->clear();
m_gameActions.clear();
m_nonMpActions.clear();
m_platformActions.clear();
m_config->clearOptions();
m_actions.addMenu(tr("&File"), "file");
m_actions.addAction(tr("Load &ROM..."), "loadROM", this, &Window::selectROM, "file", QKeySequence::Open);