forked from enlightenment/efl
Their is no more allocation with evas_object_list. Remove useless test.
SVN revision: 34633
This commit is contained in:
parent
a4ed92a1a5
commit
0e253aaca6
|
@ -113,12 +113,6 @@ evas_hash_add(Evas_Hash *hash, const char *key, const void *data)
|
|||
el->data = (void *)data;
|
||||
hash_num = _evas_hash_gen(key);
|
||||
hash->buckets[hash_num] = evas_object_list_prepend(hash->buckets[hash_num], el);
|
||||
if (evas_list_alloc_error())
|
||||
{
|
||||
_evas_hash_alloc_error = 1;
|
||||
free(el);
|
||||
return hash;
|
||||
}
|
||||
hash->population++;
|
||||
return hash;
|
||||
}
|
||||
|
@ -177,12 +171,6 @@ evas_hash_direct_add(Evas_Hash *hash, const char *key, const void *data)
|
|||
el->data = (void *)data;
|
||||
hash_num = _evas_hash_gen(key);
|
||||
hash->buckets[hash_num] = evas_object_list_prepend(hash->buckets[hash_num], el);
|
||||
if (evas_list_alloc_error())
|
||||
{
|
||||
_evas_hash_alloc_error = 1;
|
||||
free(el);
|
||||
return hash;
|
||||
}
|
||||
hash->population++;
|
||||
return hash;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue