| 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 | { |