refactor: remove redundant implementation of removeNode function in StardustBridge
This commit is contained in:
@@ -171,16 +171,6 @@ bool StardustBridge::removeNode(NodeId id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool StardustBridge::removeNode(NodeId id) {
|
||||
auto it = m_nodes.find(id);
|
||||
if (it == m_nodes.end()) return false;
|
||||
m_nodes.erase(it);
|
||||
if (m_fnRemoveNode) {
|
||||
(void)m_fnRemoveNode(id);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void StardustBridge::poll() {
|
||||
if (!m_connected) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user