feat: implement removeNode function to delete nodes from StardustBridge

This commit is contained in:
MayaTheShy
2025-11-08 16:01:05 -05:00
parent bc89033d92
commit 922c03e632

View File

@@ -171,6 +171,16 @@ 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;