| 626 | //----------------------------------------------------------------------------- |
| 627 | |
| 628 | void SimObject::unregisterObject() |
| 629 | { |
| 630 | mFlags.set(Removed); |
| 631 | |
| 632 | // Notify object first |
| 633 | onRemove(); |
| 634 | |
| 635 | // Clear out any pending notifications before |
| 636 | // we call our own, just in case they delete |
| 637 | // something that we have referenced. |
| 638 | clearAllNotifications(); |
| 639 | |
| 640 | // Notify all objects that are waiting for delete |
| 641 | // messages |
| 642 | if (getGroup()) |
| 643 | getGroup()->removeObject(this); |
| 644 | |
| 645 | processDeleteNotifies(); |
| 646 | |
| 647 | // Do removals from the Sim. |
| 648 | Sim::gNameDictionary->remove(this); |
| 649 | Sim::gIdDictionary->remove(this); |
| 650 | Sim::cancelPendingEvents(this); |
| 651 | } |
| 652 | |
| 653 | //----------------------------------------------------------------------------- |
| 654 |
nothing calls this directly
no test coverage detected