diff options
author | unknown <numaanzaheerahmed@yahoo.com> | 2020-06-05 13:10:02 +0530 |
---|---|---|
committer | unknown <numaanzaheerahmed@yahoo.com> | 2020-06-05 13:13:42 +0530 |
commit | c9edc82b3baffd24455d1db2800d946ca7e63588 (patch) | |
tree | 075f0641f8d00282733b79433fa8de75ce8cfb11 | |
parent | 243cb503e1b5d475e9f80349e7ee58592de68e99 (diff) | |
download | redot-engine-c9edc82b3baffd24455d1db2800d946ca7e63588.tar.gz |
Remove unused function get_key_value_ptr_array from hash_map.h and also fix parameter name in function get_key_list.
-rw-r--r-- | core/hash_map.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/core/hash_map.h b/core/hash_map.h index 78592f8d82..843430d082 100644 --- a/core/hash_map.h +++ b/core/hash_map.h @@ -524,28 +524,14 @@ public: copy_from(p_table); } - void get_key_value_ptr_array(const Pair **p_pairs) const { + void get_key_list(List<TKey> *r_keys) const { if (unlikely(!hash_table)) { return; } for (int i = 0; i < (1 << hash_table_power); i++) { Element *e = hash_table[i]; while (e) { - *p_pairs = &e->pair; - p_pairs++; - e = e->next; - } - } - } - - void get_key_list(List<TKey> *p_keys) const { - if (unlikely(!hash_table)) { - return; - } - for (int i = 0; i < (1 << hash_table_power); i++) { - Element *e = hash_table[i]; - while (e) { - p_keys->push_back(e->pair.key); + r_keys->push_back(e->pair.key); e = e->next; } } |