MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / Delete

Method Delete

Sources/Jazz2/Scripting/RegisterDictionary.cpp:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 }
381
382 bool CScriptDictionary::Delete(const dictKey_t& key)
383 {
384 dictMap_t::iterator it;
385 it = dict.find(key);
386 if (it != dict.end()) {
387 it->second.FreeValue(engine);
388 dict.erase(it);
389 return true;
390 }
391
392 return false;
393 }
394
395 void CScriptDictionary::DeleteAll()
396 {

Callers

nothing calls this directly

Calls 4

FreeValueMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected