MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / remove

Method remove

libcppcryptfs/filename/longfilenamecache.cpp:240–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void LongFilenameCache::remove(LPCWSTR base64_hash)
241{
242 const WCHAR *key = base64_hash;
243
244 lock();
245
246 auto it = m_map.find(key);
247
248 if (it != m_map.end()) {
249
250 LongFilenameCacheNode *node = it->second;
251
252 m_map.erase(it);
253
254 m_lru_list.erase(node->m_list_it);
255
256 m_spare_node_list.push_back(node);
257 }
258
259 unlock();
260}

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
eraseMethod · 0.80

Tested by

no test coverage detected