| 199 | //----------------------------------------------------------------------------- |
| 200 | |
| 201 | void SimSet::popObject() |
| 202 | { |
| 203 | if( objectList.empty() ) |
| 204 | { |
| 205 | AssertWarn(false, "Stack underflow in SimSet::popObject"); |
| 206 | return; |
| 207 | } |
| 208 | |
| 209 | lock(); |
| 210 | SimObject* object = objectList.last(); |
| 211 | objectList.pop_back(); |
| 212 | |
| 213 | clearNotify( object ); |
| 214 | unlock(); |
| 215 | |
| 216 | getSetModificationSignal().trigger( SetObjectRemoved, this, object ); |
| 217 | if( object->isProperlyAdded() ) |
| 218 | onObjectRemoved_callback( object ); |
| 219 | } |
| 220 | |
| 221 | //----------------------------------------------------------------------------- |
| 222 |
nothing calls this directly
no test coverage detected