MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / unload

Method unload

engine/Poseidon/World/Model/ModelCache.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool 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
174void ModelCache::clear()
175{

Callers 2

unregisterFunction · 0.80

Calls 2

normalizePathFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected