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,18 +3300,15 @@ _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_counter) return;
if (!edata->sync_began) return;
edata->sync_val++;
if (!edata->sync_cancel)
{
if (edata->sync_began)
{
edata->sync_val++;
if (!edata->sync_cancel)
{
if (!ee->semi_sync)
ecore_x_sync_counter_val_wait(edata->sync_counter,
edata->sync_val);
}
}
if (!ee->semi_sync)
ecore_x_sync_counter_val_wait(edata->sync_counter,
edata->sync_val);
}
}