Deletions!

This commit is contained in:
stopflock committed 2025-09-28 21:44:28 -05:00
1 parent c8a8d4c81f
commit a05abd8bd8
13 files changed
+272 -63

No files matched your search

+7
View File
@@ -60,6 +60,13 @@ class NodeCache {
);
}
}
/// Remove a node by ID from the cache (used for successful deletions)
void removeNodeById(int nodeId) {
if (_nodes.remove(nodeId) != null) {
print('[NodeCache] Removed node $nodeId from cache (successful deletion)');
}
}
/// Remove temporary nodes (negative IDs) with _pending_upload marker at the given coordinate
/// This is used when a real node ID is assigned to clean up temp placeholders