forked from enlightenment/efl
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:
parent
96fe10ba68
commit
7566c5bbb7
|
@ -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)
|
||||
{
|
||||
|
@ -3311,8 +3310,6 @@ _ecore_evas_x_flush_pre(void *data, Evas *e EINA_UNUSED, void *event_info EINA_U
|
|||
ecore_x_sync_counter_val_wait(edata->sync_counter,
|
||||
edata->sync_val);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue