| 252 | |
| 253 | |
| 254 | void |
| 255 | FlowScene:: |
| 256 | removeNode(Node& node) |
| 257 | { |
| 258 | // call signal |
| 259 | nodeDeleted(node); |
| 260 | |
| 261 | for(auto portType: {PortType::In,PortType::Out}) |
| 262 | { |
| 263 | auto nodeState = node.nodeState(); |
| 264 | auto const & nodeEntries = nodeState.getEntries(portType); |
| 265 | |
| 266 | for (auto &connections : nodeEntries) |
| 267 | { |
| 268 | for (auto const &pair : connections) |
| 269 | deleteConnection(*pair.second); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | _nodes.erase(node.id()); |
| 274 | } |
| 275 | |
| 276 | |
| 277 | DataModelRegistry& |
nothing calls this directly
no outgoing calls
no test coverage detected