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

Method removeItem

valdi/src/valdi/runtime/Resources/Remote/RemoteDownloader.cpp:355–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355void RemoteDownloader::removeItem(const StringBox& url) {
356 std::lock_guard<Mutex> guard(_mutex);
357
358 auto it = _downloadedItemByUrl.find(url);
359 if (it != _downloadedItemByUrl.end()) {
360 _downloadedItemByUrl.erase(it);
361 }
362}
363
364void RemoteDownloader::enqueue(const StringBox& localFilename,
365 const StringBox& url,

Callers 2

micromatch.jsFile · 0.80
loadAssetMethod · 0.80

Calls 3

endMethod · 0.65
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected