| 117 | //----------------------------------------------------------------------------- |
| 118 | |
| 119 | void ModuleManager::onDeleteNotify( SimObject *object ) |
| 120 | { |
| 121 | // Cast to a module definition. |
| 122 | ModuleDefinition* pModuleDefinition = dynamic_cast<ModuleDefinition*>( object ); |
| 123 | |
| 124 | // Ignore if not appropriate. |
| 125 | if ( pModuleDefinition == NULL ) |
| 126 | return; |
| 127 | |
| 128 | // Warn. |
| 129 | Con::warnf( "Module Manager::onDeleteNotify() - Notified of a module definition deletion for module Id '%s' of version Id '%d' however this should not happen and can cause module database corruption.", |
| 130 | pModuleDefinition->getModuleId(), pModuleDefinition->getVersionId() ); |
| 131 | } |
| 132 | |
| 133 | //----------------------------------------------------------------------------- |
| 134 |
nothing calls this directly
no test coverage detected