| 1797 | //----------------------------------------------------------------------------- |
| 1798 | |
| 1799 | void SimObject::processDeleteNotifies() |
| 1800 | { |
| 1801 | // clear out any delete notifies and |
| 1802 | // object refs. |
| 1803 | |
| 1804 | while(mNotifyList) |
| 1805 | { |
| 1806 | Notify *note = mNotifyList; |
| 1807 | mNotifyList = note->next; |
| 1808 | |
| 1809 | AssertFatal(note->type != Notify::ClearNotify, "Clear notes should be all gone."); |
| 1810 | |
| 1811 | if(note->type == Notify::DeleteNotify) |
| 1812 | { |
| 1813 | SimObject *obj = (SimObject *) note->ptr; |
| 1814 | Notify *cnote = obj->removeNotify((void *)this, Notify::ClearNotify); |
| 1815 | obj->onDeleteNotify(this); |
| 1816 | freeNotify(cnote); |
| 1817 | } |
| 1818 | else |
| 1819 | { |
| 1820 | // it must be an object ref - a pointer refs this object |
| 1821 | *((SimObject **) note->ptr) = NULL; |
| 1822 | } |
| 1823 | freeNotify(note); |
| 1824 | } |
| 1825 | } |
| 1826 | |
| 1827 | //----------------------------------------------------------------------------- |
| 1828 |
nothing calls this directly
no test coverage detected