From 783eee898cda93ed345a91000834b972c971c327 Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Tue, 9 Jan 2024 20:05:45 +0800
Subject: [PATCH 11/17] fix(build): delete useless methods
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- 删除无用的方法
---
 plugins/appearance/utils/exclusion-group.cpp | 13 -------------
 plugins/appearance/utils/exclusion-group.h   |  4 ----
 2 files changed, 17 deletions(-)

diff --git a/plugins/appearance/utils/exclusion-group.cpp b/plugins/appearance/utils/exclusion-group.cpp
index 12fb734..8db48ca 100644
--- a/plugins/appearance/utils/exclusion-group.cpp
+++ b/plugins/appearance/utils/exclusion-group.cpp
@@ -125,19 +125,6 @@ void ExclusionGroup::removeExclusionItem(ExclusionWidget* widget)
     m_exclusionItems.remove(widget);
 }
 
-template <class T,typename = std::enable_if<std::is_base_of<ExclusionWidget, T>::value>>
-QList<T*> ExclusionGroup::getExclusionItems()
-{
-    QList<T*>  list;
-
-    for( auto item : m_exclusionItems)
-    {
-        list << qobject_cast<T>(item);
-    }
-
-    return list;
-}
-
 void ExclusionGroup::onItemSelectedChanged(bool selected)
 {
     auto item = qobject_cast<ExclusionWidget*>(sender());
diff --git a/plugins/appearance/utils/exclusion-group.h b/plugins/appearance/utils/exclusion-group.h
index 4ca9bd0..7d66a1f 100644
--- a/plugins/appearance/utils/exclusion-group.h
+++ b/plugins/appearance/utils/exclusion-group.h
@@ -65,10 +65,6 @@ public:
 
     void addExclusionItem(ExclusionWidget* widget);
     void removeExclusionItem(ExclusionWidget* widget);
-
-    template <class T,typename = std::enable_if<std::is_base_of<ExclusionWidget, T>::value>>
-    QList<T*> getExclusionItems();
-
 signals:
     void currentItemChanged();
 
-- 
2.33.0

