From 27f1e82a8ffa1b6f412f07c49c6f19a3f4b79719 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 12 Nov 2020 15:59:03 +0100 Subject: [PATCH] [plasmalnf] Remove unused path-setting from the widget - Only Config needs to know the path, since it is responsible for doing the actual lnf changes. --- src/modules/plasmalnf/PlasmaLnfPage.cpp | 6 ------ src/modules/plasmalnf/PlasmaLnfPage.h | 2 -- src/modules/plasmalnf/PlasmaLnfViewStep.cpp | 1 - 3 files changed, 9 deletions(-) diff --git a/src/modules/plasmalnf/PlasmaLnfPage.cpp b/src/modules/plasmalnf/PlasmaLnfPage.cpp index a44620074..d512b1dc0 100644 --- a/src/modules/plasmalnf/PlasmaLnfPage.cpp +++ b/src/modules/plasmalnf/PlasmaLnfPage.cpp @@ -72,12 +72,6 @@ PlasmaLnfPage::PlasmaLnfPage( QWidget* parent ) } ) } -void -PlasmaLnfPage::setLnfPath( const QString& path ) -{ - m_lnfPath = path; -} - void PlasmaLnfPage::setEnabledThemes( const ThemeInfoList& themes, bool showAll ) { diff --git a/src/modules/plasmalnf/PlasmaLnfPage.h b/src/modules/plasmalnf/PlasmaLnfPage.h index 287da8b29..acdf7c587 100644 --- a/src/modules/plasmalnf/PlasmaLnfPage.h +++ b/src/modules/plasmalnf/PlasmaLnfPage.h @@ -36,7 +36,6 @@ class PlasmaLnfPage : public QWidget public: explicit PlasmaLnfPage( QWidget* parent = nullptr ); - void setLnfPath( const QString& path ); /** @brief enable only the listed themes. * * Shows the listed @p themes with full information (e.g. screenshot). @@ -61,7 +60,6 @@ private: void fillUi(); Ui::PlasmaLnfPage* ui; - QString m_lnfPath; QString m_preselect; bool m_showAll; // If true, don't winnow according to enabledThemes ThemeInfoList m_enabledThemes; diff --git a/src/modules/plasmalnf/PlasmaLnfViewStep.cpp b/src/modules/plasmalnf/PlasmaLnfViewStep.cpp index d282cea09..445e5dddb 100644 --- a/src/modules/plasmalnf/PlasmaLnfViewStep.cpp +++ b/src/modules/plasmalnf/PlasmaLnfViewStep.cpp @@ -98,7 +98,6 @@ PlasmaLnfViewStep::setConfigurationMap( const QVariantMap& configurationMap ) { m_config->setConfigurationMap( configurationMap ); - m_widget->setLnfPath( m_config->lnfToolPath() ); m_widget->setPreselect( m_config->preselectedTheme() ); bool showAll = CalamaresUtils::getBool( configurationMap, "showAll", false );