From e4d98fba6c56b3bab0baacc89929b24a0c663033 Mon Sep 17 00:00:00 2001 From: ChunelFeng Date: Wed, 8 May 2024 22:33:40 +0800 Subject: [PATCH] [perf] optimize cluster --- .../GraphElement/GGroup/GCluster/GCluster.cpp | 15 --------------- .../GraphElement/GGroup/GCluster/GCluster.h | 3 --- 2 files changed, 18 deletions(-) diff --git a/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.cpp b/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.cpp index 2b975030..e7df8783 100644 --- a/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.cpp +++ b/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.cpp @@ -16,21 +16,6 @@ GCluster::GCluster() { } -GCluster::GCluster(const GCluster& cluster) { - this->group_elements_arr_ = cluster.group_elements_arr_; -} - - -GCluster& GCluster::operator=(const GCluster& cluster) { - if (this == &cluster) { - return *this; - } - - this->group_elements_arr_ = cluster.group_elements_arr_; - return *this; -} - - CStatus GCluster::run() { CGRAPH_FUNCTION_BEGIN for (GElementPtr element : this->group_elements_arr_) { diff --git a/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.h b/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.h index 9e655f5b..7b8d9747 100644 --- a/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.h +++ b/src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.h @@ -17,9 +17,6 @@ CGRAPH_NAMESPACE_BEGIN class GCluster : public GGroup { protected: - /** 涉及到与线程池的联动,cluster类无法将构造函数申明成protected类型 */ - GCluster(const GCluster& cluster); - GCluster& operator=(const GCluster& cluster); explicit GCluster(); private: