Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ isUnused
Method
isUnused
valdi/src/valdi/snap_drawing/ImageLoading/ImageCacheItem.cpp:41–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
}
40
41
bool ImageCacheItem::isUnused() const {
42
return _image->retainCount() == 1;
43
}
44
45
long ImageCacheItem::getImageSizeInBytes() const {
46
return imageSize(_image);
Callers
2
tryRemoveOriginalImage
Method · 0.80
invalidateCachedItems
Method · 0.80
Calls
1
retainCount
Method · 0.45
Tested by
no test coverage detected