| 388 | //----------------------------------------------------------------------------- |
| 389 | |
| 390 | bool AssetManager::removeDeclaredAssets( ModuleDefinition* pModuleDefinition ) |
| 391 | { |
| 392 | // Debug Profiling. |
| 393 | PROFILE_SCOPE(AssetManager_RemoveDeclaredAssets); |
| 394 | |
| 395 | // Sanity! |
| 396 | AssertFatal( pModuleDefinition != NULL, "Cannot remove declared assets using a NULL module definition" ); |
| 397 | |
| 398 | // Fetch module assets. |
| 399 | ModuleDefinition::typeModuleAssetsVector& moduleAssets = pModuleDefinition->getModuleAssets(); |
| 400 | |
| 401 | // Remove all module assets. |
| 402 | while ( moduleAssets.size() > 0 ) |
| 403 | { |
| 404 | // Fetch asset definition. |
| 405 | AssetDefinition* pAssetDefinition = *moduleAssets.begin(); |
| 406 | |
| 407 | // Remove this asset. |
| 408 | removeDeclaredAsset( pAssetDefinition->mAssetId ); |
| 409 | } |
| 410 | |
| 411 | // Info. |
| 412 | if ( mEchoInfo ) |
| 413 | Con::printSeparator(); |
| 414 | |
| 415 | return true; |
| 416 | } |
| 417 | |
| 418 | //----------------------------------------------------------------------------- |
| 419 |
no test coverage detected