| 210 | } |
| 211 | |
| 212 | void ActionManager::removeAction(Action* action) |
| 213 | { |
| 214 | // explicit null handling |
| 215 | if (action == nullptr) |
| 216 | { |
| 217 | return; |
| 218 | } |
| 219 | |
| 220 | Object* target = action->getOriginalTarget(); |
| 221 | auto actionIt = _targets.find(static_cast<Node*>(target)); |
| 222 | if (actionIt != _targets.end()) |
| 223 | { |
| 224 | auto i = actionIt->second.actions.getIndex(action); |
| 225 | if (i != AX_INVALID_INDEX) |
| 226 | { |
| 227 | removeActionAtIndex(i, actionIt->second, actionIt); |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | void ActionManager::removeActionByTag(int tag, Node* target) |
| 233 | { |
no test coverage detected