| 1318 | //----------------------------------------------------------------------------- |
| 1319 | |
| 1320 | void removePathExpando( const char* pExpandoName ) |
| 1321 | { |
| 1322 | // Sanity! |
| 1323 | AssertFatal( pExpandoName != NULL, "Expando name cannot be NULL." ); |
| 1324 | |
| 1325 | // Fetch expando name. |
| 1326 | StringTableEntry expandoName = StringTable->insert( pExpandoName ); |
| 1327 | |
| 1328 | // Find any existing path expando. |
| 1329 | typePathExpandoMap::iterator expandoItr = PathExpandos.find( expandoName ); |
| 1330 | |
| 1331 | // Does the expando exist? |
| 1332 | if ( expandoItr == PathExpandos.end() ) |
| 1333 | { |
| 1334 | // No, so warn. |
| 1335 | #if defined(TORQUE_DEBUG) |
| 1336 | Con::warnf("Removing path expando of '%s' but it does not exist.", expandoName ); |
| 1337 | #endif |
| 1338 | return; |
| 1339 | } |
| 1340 | |
| 1341 | // Info. |
| 1342 | #if defined(TORQUE_DEBUG) |
| 1343 | Con::printf("Removing path expando of '%s' as '%s'.", expandoName, expandoItr->value ); |
| 1344 | #endif |
| 1345 | // Remove expando. |
| 1346 | PathExpandos.erase( expandoItr ); |
| 1347 | } |
| 1348 | |
| 1349 | //----------------------------------------------------------------------------- |
| 1350 |
no test coverage detected