summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-02-13 07:59:46 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-02-13 16:37:10 -0800
commit94be8a88d3c28fd8b339b141f2f209a01e589564 (patch)
treef193147bfdb8a7e8162c9247d87fa2722aeb4acf
parent1cdedaa33b25b95f5305fb808c20526ced763110 (diff)
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.c14
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,
130 current->str = str; 130 current->str = str;
131 current->len = len; 131 current->len = len;
132 132
133 if (idx == -1) 133 current->next = ed->hash[hash];
134 { 134 ed->hash[hash] = ed->count;
135 current->next = ed->hash[hash]; 135
136 ed->hash[hash] = ed->count;
137 }
138 else
139 {
140 current->next = idx;
141 if (pidx != -1) ed->all[pidx].next = ed->count;
142 else ed->hash[hash] = ed->count;
143 }
144 cnt = ed->count++; 136 cnt = ed->count++;
145 eina_rwlock_release(&ed->rwlock); 137 eina_rwlock_release(&ed->rwlock);
146 return cnt; 138 return cnt;