"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "e666a4b412e00b1f9d8e3639e0896a271c0f0cd9"
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() {
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;
}
......
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