Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
4466349c
Unverified
Commit
4466349c
authored
Apr 19, 2024
by
James Lamb
Committed by
GitHub
Apr 19, 2024
Browse files
[c++] remove unused variable 'need_connect_cnt' (#6410)
parent
0901aa64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
src/network/linkers_socket.cpp
src/network/linkers_socket.cpp
+0
-4
No files found.
src/network/linkers_socket.cpp
View file @
4466349c
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment