[Pkg-e-commits] [SCM] Enlightenment DR17 advanced canvas library branch, upstream-vcs, updated. 069f3cc6c93f253bffbc90289fe21d868f745bb6
cedric
cedric at alioth.debian.org
Sat Jun 7 18:24:15 UTC 2008
The following commit has been merged in the upstream-vcs branch:
commit b86009e39e4dd4e8a1be096b5ed74aa75121d2da
Author: cedric <cedric>
Date: Wed May 21 12:23:47 2008 +0000
Their is no more allocation with evas_object_list. Remove useless test.
diff --git a/src/lib/data/evas_hash.c b/src/lib/data/evas_hash.c
index 2810b33..68249cb 100644
--- a/src/lib/data/evas_hash.c
+++ b/src/lib/data/evas_hash.c
@@ -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;
}
--
Enlightenment DR17 advanced canvas library
More information about the Pkg-e-commits
mailing list