Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BanjoRecomp/BanjoRecomp
/ erase
Method
erase
src/game/recomp_data_api.cpp:126–134 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
124
}
125
126
bool erase(uint32_t key) {
127
std::lock_guard lock{mutex};
128
if (!map.has_key(key_t{ key })) {
129
return false;
130
}
131
132
map.erase(key_t{ key });
133
return true;
134
}
135
136
void clear() {
137
std::lock_guard lock{mutex};
Callers
nothing calls this directly
Calls
2
has_key
Method · 0.80
erase
Method · 0.45
Tested by
no test coverage detected