diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2019-02-13 07:59:46 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2019-02-13 16:37:10 -0800 |
commit | 94be8a88d3c28fd8b339b141f2f209a01e589564 (patch) | |
tree | f193147bfdb8a7e8162c9247d87fa2722aeb4acf | |
parent | 1cdedaa33b25b95f5305fb808c20526ced763110 (diff) | |
download | efl-94be8a88d3c28fd8b339b141f2f209a01e589564.tar.gz |
eet_dictionary: remove dead code
If index value is not -1, then eet_dictionary_string_add() returns.
Therefore, it does not need to check the index value after that.
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7922
-rw-r--r-- | src/lib/eet/eet_dictionary.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/eet/eet_dictionary.c b/src/lib/eet/eet_dictionary.c index 46e8cbf723..7a80463bd6 100644 --- a/src/lib/eet/eet_dictionary.c +++ b/src/lib/eet/eet_dictionary.c @@ -130,17 +130,9 @@ eet_dictionary_string_add(Eet_Dictionary *ed, current->str = str; current->len = len; - if (idx == -1) - { - current->next = ed->hash[hash]; - ed->hash[hash] = ed->count; - } - else - { - current->next = idx; - if (pidx != -1) ed->all[pidx].next = ed->count; - else ed->hash[hash] = ed->count; - } + current->next = ed->hash[hash]; + ed->hash[hash] = ed->count; + cnt = ed->count++; eina_rwlock_release(&ed->rwlock); return cnt; |