| 1328 | } |
| 1329 | |
| 1330 | void Node::removeAction(Action* action) { |
| 1331 | if (!hasAction(action)) return; |
| 1332 | if (_action == action) { |
| 1333 | if (action->_next) { |
| 1334 | _action = action->_next; |
| 1335 | _action->_prev = nullptr; |
| 1336 | } else { |
| 1337 | _action = nullptr; |
| 1338 | } |
| 1339 | } else { |
| 1340 | if (action->_prev) { |
| 1341 | action->_prev->_next = action->_next; |
| 1342 | } |
| 1343 | } |
| 1344 | action->_prev = nullptr; |
| 1345 | action->_next = nullptr; |
| 1346 | } |
| 1347 | |
| 1348 | void Node::stopAction(Action* action) { |
| 1349 | if (hasAction(action)) { |
no outgoing calls
no test coverage detected