| 223 | } |
| 224 | |
| 225 | bool ModelManager::isLocalLibrary([[maybe_unused]] const QString& libraryName) |
| 226 | { |
| 227 | #if defined(BUILD_MATERIAL_EXTERNAL) |
| 228 | if (_useExternal) { |
| 229 | try { |
| 230 | auto lib = _externalManager->getLibrary(libraryName); |
| 231 | if (lib) { |
| 232 | return false; |
| 233 | } |
| 234 | } |
| 235 | catch (const LibraryNotFound& e) { |
| 236 | } |
| 237 | } |
| 238 | #endif |
| 239 | return true; |
| 240 | } |
| 241 | |
| 242 | //===== |
| 243 | // |
nothing calls this directly
no test coverage detected