MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / unload

Method unload

Source/Cache/TMXCache.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool TMXCache::unload(String filename) {
114 std::string fullPath = SharedContent.getFullPath(filename);
115 auto it = _maps.find(fullPath);
116 if (it != _maps.end()) {
117 _maps.erase(it);
118 return true;
119 }
120 return false;
121}
122
123bool TMXCache::unload() {
124 if (_maps.empty()) {

Callers

nothing calls this directly

Calls 6

getFullPathMethod · 0.80
findMethod · 0.65
clearMethod · 0.65
endMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected