remove unnecessary second checks on validity

Summary:
Some checks were removed, becouse they are useless, due macross
GET_PD_OR_RETURN(NULL) does all this work.
@fix

Reviewers: seoz, cedric, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D980
This commit is contained in:
Igor Gala 2014-06-10 17:19:40 +02:00 committed by Cedric BAIL
parent 05a8f2eac6
commit e15b8c27ac
1 changed files with 2 additions and 5 deletions

View File

@ -4881,7 +4881,8 @@ EAPI Eina_Bool
edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state, double value, const char *text)
{
Edje_Part_Description_Text *txt;
if ((!obj) || (!part) || (!state) || (!text))
if (!text)
return EINA_FALSE;
GET_PD_OR_RETURN(EINA_FALSE);
@ -4920,8 +4921,6 @@ edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *st
{
Edje_Part_Description_Text *txt;
if ((!obj) || (!part) || (!state))
return EINA_FALSE;
if (size < 0) return EINA_FALSE;
GET_PD_OR_RETURN(EINA_FALSE);
@ -5243,8 +5242,6 @@ edje_edit_state_font_set(Evas_Object *obj, const char *part, const char *state,
{
Edje_Part_Description_Text *txt;
if ((!obj) || (!part) || (!state))
return EINA_FALSE;
GET_PD_OR_RETURN(EINA_FALSE);
if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&