MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DeleteAsset

Method DeleteAsset

Source/Engine/Content/Cache/AssetsCache.cpp:516–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516bool AssetsCache::DeleteAsset(const StringView& path, AssetInfo* info)
517{
518 bool result = false;
519 ASSETS_CACHE_LOCK();
520 for (auto i = _registry.Begin(); i.IsNotEnd(); ++i)
521 {
522 if (i->Value.Info.Path == path)
523 {
524 if (info)
525 *info = i->Value.Info;
526 _registry.Remove(i);
527 _isDirty = true;
528 result = true;
529 break;
530 }
531 }
532 return result;
533}
534
535bool AssetsCache::DeleteAsset(const Guid& id, AssetInfo* info)
536{

Callers

nothing calls this directly

Calls 4

BeginMethod · 0.45
IsNotEndMethod · 0.45
RemoveMethod · 0.45
TryGetMethod · 0.45

Tested by

no test coverage detected