MCPcopy Create free account
hub / github.com/Snapchat/Valdi / unloadUnusedResources

Method unloadUnusedResources

valdi/src/valdi/runtime/Resources/Bundle.cpp:306–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void Bundle::unloadUnusedResources() {
307 std::lock_guard<std::recursive_mutex> guard(_mutex);
308 removeUnusedItems(_cssDocumentByPath);
309}
310
311Result<Ref<AssetCatalog>> Bundle::getAssetCatalog(const StringBox& assetCatalogPath) {
312 std::lock_guard<std::recursive_mutex> guard(_mutex);

Callers 1

removeUnusedResourcesMethod · 0.80

Calls 1

removeUnusedItemsFunction · 0.85

Tested by

no test coverage detected