Enlightenment CVS committal Author : tilman Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_var.c Log Message: don't check for valid timers/animators in timer_cancel/anim_cancel. the gain:pain ratio didn't turn out as good as expected - it's a PITA to make sure you only cancel valid timers/animators in your embryo code. =================================================================== RCS file: /cvs/e/e17/libs/edje/src/lib/edje_var.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- edje_var.c 19 Mar 2006 04:22:35 -0000 1.19 +++ edje_var.c 9 Oct 2006 17:11:16 -0000 1.20 @@ -983,17 +983,7 @@ Edje_Var_Timer *et; et = _edje_var_timer_find(ed, id); - if (!et) - { - fprintf(stderr, - "*** EDJE ERROR: Cannot find timer to cancel\n" - "*** NAUGHTY PROGRAMMER!!!\n" - "*** SPANK SPANK SPANK!!!\n" - "*** Now go fix your code. Tut tut tut!\n" - "\n"); - if (getenv("EDJE_ERROR_ABORT")) abort(); - return; - } + if (!et) return; ed->var_pool->timers = evas_list_remove(ed->var_pool->timers, et); ecore_timer_del(et->timer); @@ -1048,17 +1038,7 @@ Edje_Var_Animator *ea; ea = _edje_var_anim_find(ed, id); - if (!ea) - { - fprintf(stderr, - "*** EDJE ERROR: Cannot find animator to cancel\n" - "*** NAUGHTY PROGRAMMER!!!\n" - "*** SPANK SPANK SPANK!!!\n" - "*** Now go fix your code. Tut tut tut!\n" - "\n"); - if (getenv("EDJE_ERROR_ABORT")) abort(); - return; - } + if (!ea) return; if (ed->var_pool->walking_list) { ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs