"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "61ad133b5c9fc1614c0283800a34b503a3ff21b2"
Unverified Commit 4466349c authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[c++] remove unused variable 'need_connect_cnt' (#6410)

parent 0901aa64
...@@ -171,13 +171,9 @@ void Linkers::Construct() { ...@@ -171,13 +171,9 @@ void Linkers::Construct() {
need_connect[i] = 1; need_connect[i] = 1;
} }
} }
int need_connect_cnt = 0;
int incoming_cnt = 0; int incoming_cnt = 0;
for (auto it = need_connect.begin(); it != need_connect.end(); ++it) { for (auto it = need_connect.begin(); it != need_connect.end(); ++it) {
int machine_rank = it->first; int machine_rank = it->first;
if (machine_rank >= 0 && machine_rank != rank_) {
++need_connect_cnt;
}
if (machine_rank < rank_) { if (machine_rank < rank_) {
++incoming_cnt; ++incoming_cnt;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment