From 081f5ec4d99058ba30214cae3dc90a5ffec03f13 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 2 Apr 2020 23:39:29 +0200 Subject: [PATCH] [libcalamaresui] Remove unused static methods - The UI bits that needed these button-setup functions have moved to CalamaresWindow (with copies of those functions) --- src/libcalamaresui/ViewManager.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index 9bfb31e43..007dd14a2 100644 --- a/src/libcalamaresui/ViewManager.cpp +++ b/src/libcalamaresui/ViewManager.cpp @@ -63,23 +63,6 @@ ViewManager::instance( QObject* parent ) return s_instance; } -/** @brief Get a button-sized icon. */ -static inline QPixmap -getButtonIcon( const QString& name ) -{ - return Calamares::Branding::instance()->image( name, QSize( 22, 22 ) ); -} - -static inline void -setButtonIcon( QPushButton* button, const QString& name ) -{ - auto icon = getButtonIcon( name ); - if ( button && !icon.isNull() ) - { - button->setIcon( icon ); - } -} - ViewManager::ViewManager( QObject* parent ) : QAbstractListModel( parent ) , m_currentStep( 0 )