eet_dictionary: remove dead code 62/199862/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 13 Feb 2019 07:59:46 +0000 (07:59 +0000)
committerjunsu choi <jsuya.choi@samsung.com>
Fri, 15 Feb 2019 05:36:32 +0000 (05:36 +0000)
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

Change-Id: I7181d02df14c96287760d8f266a866471b125435

src/lib/eet/eet_dictionary.c

index 46e8cbf..7a80463 100644 (file)
@@ -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;