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: