From 204207f2a9eeb400611a226a10c5ac52bf856549 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 10 Jun 2021 21:59:08 +0200 Subject: [PATCH] Remove dead code It's unused. --- .../homescreenutils.cpp | 15 --------------- .../mobilehomescreencomponents/homescreenutils.h | 5 ----- 2 files changed, 20 deletions(-) diff --git a/components/mobilehomescreencomponents/homescreenutils.cpp b/components/mobilehomescreencomponents/homescreenutils.cpp index 36e80019..40932586 100644 --- a/components/mobilehomescreencomponents/homescreenutils.cpp +++ b/components/mobilehomescreencomponents/homescreenutils.cpp @@ -4,7 +4,6 @@ */ #include "homescreenutils.h" -#include "applicationlistmodel.h" #include "favoritesmodel.h" #include @@ -19,20 +18,6 @@ HomeScreenUtils::HomeScreenUtils(QObject *parent) HomeScreenUtils::~HomeScreenUtils() = default; -ApplicationListModel *HomeScreenUtils::applicationListModel() -{ - if (!m_applicationListModel) { - if (m_showAllApps) { - m_applicationListModel = new ApplicationListModel(this); - } else { - m_applicationListModel = new FavoritesModel(this); - } - // m_applicationListModel->setApplet(this); - m_applicationListModel->loadApplications(); - } - return m_applicationListModel; -} - void HomeScreenUtils::stackBefore(QQuickItem *item1, QQuickItem *item2) { if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) { diff --git a/components/mobilehomescreencomponents/homescreenutils.h b/components/mobilehomescreencomponents/homescreenutils.h index 31056792..db43ab95 100644 --- a/components/mobilehomescreencomponents/homescreenutils.h +++ b/components/mobilehomescreencomponents/homescreenutils.h @@ -10,20 +10,16 @@ #include class QQuickItem; -class ApplicationListModel; class FavoritesModel; class HomeScreenUtils : public QObject { Q_OBJECT - Q_PROPERTY(ApplicationListModel *applicationListModel READ applicationListModel CONSTANT) public: HomeScreenUtils( QObject *parent = 0); ~HomeScreenUtils() override; - ApplicationListModel *applicationListModel(); - Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2); Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2); @@ -31,7 +27,6 @@ protected: // void configChanged() override; private: - ApplicationListModel *m_applicationListModel = nullptr; bool m_showAllApps = false; };