From 4a3273d6341e8f1fcc81eea937d0b45d9df5cc67 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 27 Oct 2020 16:59:22 +0100 Subject: [PATCH] [keyboard] Remove superfluous variable (set to true, never changed) --- src/modules/keyboard/KeyboardViewStep.cpp | 6 ++---- src/modules/keyboard/KeyboardViewStep.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/keyboard/KeyboardViewStep.cpp b/src/modules/keyboard/KeyboardViewStep.cpp index 844c3c719..80945f848 100644 --- a/src/modules/keyboard/KeyboardViewStep.cpp +++ b/src/modules/keyboard/KeyboardViewStep.cpp @@ -21,11 +21,9 @@ KeyboardViewStep::KeyboardViewStep( QObject* parent ) : Calamares::ViewStep( parent ) , m_config( new Config(this) ) , m_widget( new KeyboardPage() ) - , m_nextEnabled( false ) { m_config->detectCurrentKeyboardLayout(); - m_nextEnabled = true; - emit nextStatusChanged( m_nextEnabled ); + emit nextStatusChanged( true ); } @@ -62,7 +60,7 @@ KeyboardViewStep::widget() bool KeyboardViewStep::isNextEnabled() const { - return m_nextEnabled; + return true; } diff --git a/src/modules/keyboard/KeyboardViewStep.h b/src/modules/keyboard/KeyboardViewStep.h index 31769d192..902b888fd 100644 --- a/src/modules/keyboard/KeyboardViewStep.h +++ b/src/modules/keyboard/KeyboardViewStep.h @@ -49,7 +49,6 @@ public: private: Config* m_config; KeyboardPage* m_widget; - bool m_nextEnabled; }; CALAMARES_PLUGIN_FACTORY_DECLARATION( KeyboardViewStepFactory )