diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-08-14 19:19:05 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-08-14 19:19:05 +0200 |
commit | 21d285e30fac8753bf2e1422054907d6b9c21150 (patch) | |
tree | e9437b2ae07f068eaa7fc22cdb207fe91d4adb1e /core/dictionary.cpp | |
parent | a71a5fc0c3f5d487d3f18c3b9e9a768052795e86 (diff) | |
download | redot-engine-21d285e30fac8753bf2e1422054907d6b9c21150.tar.gz |
Dictionary: remove erase_checked(key), make erase(key) return bool
Diffstat (limited to 'core/dictionary.cpp')
-rw-r--r-- | core/dictionary.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/dictionary.cpp b/core/dictionary.cpp index 42d9eab310..9cc913fa0d 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -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); } |