ecore_evas_x: Refactored by reducing cascaded if statements.

Just return the function. Do not create unnecessary cascaded if
statements it makes indentation depth deeper.
This commit is contained in:
Daniel Juyung Seo 2014-01-08 23:29:40 +09:00
parent 96fe10ba68
commit 7566c5bbb7
1 changed files with 8 additions and 11 deletions

View File

@ -3300,10 +3300,9 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
if (ee->no_comp_sync) return;
if (!_ecore_evas_app_comp_sync) return;
if (edata->sync_counter)
{
if (edata->sync_began)
{
if (!edata->sync_counter) return;
if (!edata->sync_began) return;
edata->sync_val++;
if (!edata->sync_cancel)
{
@ -3312,8 +3311,6 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
edata->sync_val);
}
}
}
}
static void
_ecore_evas_x_flush_post(void *data, Evas *e EINA_UNUSED, void *event_info EINA_UNUSED)