Skip to content

Commit 891a19c

Browse files
authored
Remove dead code (#7813)
1 parent 0bdfe53 commit 891a19c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/consensus/aft/raft.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,18 +2806,6 @@ namespace aft
28062806
}
28072807
}
28082808

2809-
// Remove all nodes in the node state that are not present in any active
2810-
// configuration.
2811-
std::vector<ccf::NodeId> to_remove;
2812-
2813-
for (const auto& node : all_other_nodes)
2814-
{
2815-
if (active_nodes.find(node.first) == active_nodes.end())
2816-
{
2817-
to_remove.push_back(node.first);
2818-
}
2819-
}
2820-
28212809
// Add all active nodes that are not already present in the node state.
28222810
for (auto node_info : active_nodes)
28232811
{

0 commit comments

Comments
 (0)