Dictionary: remove erase_checked(key), make erase(key) return bool

This commit is contained in:
Ignacio Etcheverry
2018-08-14 19:19:05 +02:00
parent a71a5fc0c3
commit 21d285e30f
4 changed files with 5 additions and 11 deletions

View File

@@ -135,12 +135,7 @@ bool Dictionary::has_all(const Array &p_keys) const {
return true;
}
void Dictionary::erase(const Variant &p_key) {
_p->variant_map.erase(p_key);
}
bool Dictionary::erase_checked(const Variant &p_key) {
bool Dictionary::erase(const Variant &p_key) {
return _p->variant_map.erase(p_key);
}