| 159 | } |
| 160 | |
| 161 | bool ModelCache::unload(const std::string& filePath) |
| 162 | { |
| 163 | std::string key = normalizePath(filePath); |
| 164 | auto it = _cache.find(key); |
| 165 | if (it != _cache.end()) |
| 166 | { |
| 167 | _cache.erase(it); |
| 168 | _stats.cachedModels = _cache.size(); |
| 169 | return true; |
| 170 | } |
| 171 | return false; |
| 172 | } |
| 173 | |
| 174 | void ModelCache::clear() |
| 175 | { |
no test coverage detected