Skip to content

Commit

Permalink
[perf] optimize cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed May 8, 2024
1 parent c3c94ec commit e4d98fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand Down
3 changes: 0 additions & 3 deletions src/GraphCtrl/GraphElement/GGroup/GCluster/GCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e4d98fb

Please sign in to comment.