remove dead stores and reduce some variable scope.

from clang report.


SVN revision: 38294
This commit is contained in:
Gustavo Sverzut Barbieri 2008-12-23 19:17:55 +00:00
parent 586979c07b
commit 7eb0826e29
3 changed files with 8 additions and 8 deletions

View File

@ -158,7 +158,7 @@ eina_accessor_over(Eina_Accessor *accessor,
{
void *container;
void *data;
unsigned int i = start;
unsigned int i;
EINA_MAGIC_CHECK_ACCESSOR(accessor);

View File

@ -324,7 +324,7 @@ EAPI Eina_Rbtree *
eina_rbtree_inline_remove(Eina_Rbtree *root, Eina_Rbtree *node, Eina_Rbtree_Cmp_Node_Cb cmp, const void *data)
{
Eina_Rbtree head;
Eina_Rbtree *q, *p, *g;
Eina_Rbtree *q, *p;
Eina_Rbtree *f = NULL;
Eina_Rbtree_Direction dir;
@ -334,13 +334,14 @@ eina_rbtree_inline_remove(Eina_Rbtree *root, Eina_Rbtree *node, Eina_Rbtree_Cmp_
dir = EINA_RBTREE_RIGHT;
q = &head;
g = p = NULL;
p = NULL;
q->son[EINA_RBTREE_RIGHT] = root;
/* Search and push a red down */
while (q->son[dir] != NULL)
{
Eina_Rbtree_Direction last = dir;
Eina_Rbtree *g;
/* Update helpers */
g = p; p = q;

View File

@ -102,7 +102,6 @@ _eina_rectangle_pool_find(Eina_Rectangle_Alloc *head, int poolw, int poolh, int
Eina_Bool t2 = EINA_TRUE;
Eina_Bool t3 = EINA_TRUE;
Eina_Bool t4 = EINA_TRUE;
Eina_Bool intersects;
if ((rect->x + rect->w + w) > poolw) t1 = EINA_FALSE;
if ((rect->y + h) > poolh) t1 = EINA_FALSE;
@ -113,9 +112,9 @@ _eina_rectangle_pool_find(Eina_Rectangle_Alloc *head, int poolw, int poolh, int
if ((rect->x + w) > poolw) t4 = EINA_FALSE;
if ((rect->y - h) < 0) t4 = EINA_FALSE;
intersects = EINA_FALSE;
if (t1)
{
Eina_Bool intersects;
/* 1. try here:
* +----++--+
* |AAAA||??|
@ -128,9 +127,9 @@ _eina_rectangle_pool_find(Eina_Rectangle_Alloc *head, int poolw, int poolh, int
if (!intersects) goto on_intersect;
}
intersects = EINA_FALSE;
if (t2)
{
Eina_Bool intersects;
/* 2. try here:
* +----+
* |AAAA|
@ -146,9 +145,9 @@ _eina_rectangle_pool_find(Eina_Rectangle_Alloc *head, int poolw, int poolh, int
if (!intersects) goto on_intersect;
}
intersects = EINA_FALSE;
if (t3)
{
Eina_Bool intersects;
/* 3. try here:
* +--++----+
* |??||AAAA|
@ -161,9 +160,9 @@ _eina_rectangle_pool_find(Eina_Rectangle_Alloc *head, int poolw, int poolh, int
if (!intersects) goto on_intersect;
}
intersects = EINA_FALSE;
if (t4)
{
Eina_Bool intersects;
/* 2. try here:
* +--+
* |??|