Skip to content

Commit

Permalink
[c++] remove unused variable 'need_connect_cnt' (#6410)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Apr 19, 2024
1 parent 0901aa6 commit 4466349
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/network/linkers_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,9 @@ void Linkers::Construct() {
need_connect[i] = 1;
}
}
int need_connect_cnt = 0;
int incoming_cnt = 0;
for (auto it = need_connect.begin(); it != need_connect.end(); ++it) {
int machine_rank = it->first;
if (machine_rank >= 0 && machine_rank != rank_) {
++need_connect_cnt;
}
if (machine_rank < rank_) {
++incoming_cnt;
}
Expand Down

0 comments on commit 4466349

Please sign in to comment.