MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / EraseBitmap

Method EraseBitmap

src/windows/AvatarCache.cpp:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void AvatarCache::EraseBitmap(const std::string& resource)
236{
237 auto iter = m_profileToBitmap.find(resource);
238 if (iter == m_profileToBitmap.end())
239 return;
240
241 DeleteImageIfNeeded(iter->second.m_image);
242 m_profileToBitmap.erase(iter);
243}
244
245bool AvatarCache::TrimBitmap()
246{

Callers 1

WindowProcFunction · 0.80

Calls 3

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected