----------------------------------------------------------------------------
| 332 | |
| 333 | //---------------------------------------------------------------------------- |
| 334 | void ctkCmdLineModuleManager::unregisterModule(const ctkCmdLineModuleReference& ref) |
| 335 | { |
| 336 | if (!ref) return; |
| 337 | |
| 338 | { |
| 339 | QMutexLocker lock(&d->Mutex); |
| 340 | if (!d->LocationToRef.contains(ref.location())) |
| 341 | { |
| 342 | return; |
| 343 | } |
| 344 | d->LocationToRef.remove(ref.location()); |
| 345 | if (d->ModuleCache) |
| 346 | { |
| 347 | d->ModuleCache->removeCacheEntry(ref.location()); |
| 348 | } |
| 349 | } |
| 350 | emit moduleUnregistered(ref); |
| 351 | } |
| 352 | |
| 353 | |
| 354 | //---------------------------------------------------------------------------- |
no test coverage detected