From: Gwanglim Lee Date: Fri, 26 Feb 2016 08:49:20 +0000 (+0900) Subject: remove unused codes X-Git-Tag: submit/tizen/20160226.085725~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e154c06915806160911ac925f60e19cf3bc3210;p=platform%2Fupstream%2Fenlightenment.git remove unused codes Change-Id: Ida5ad9111c5331d476acf3450fc89e14eb4edb8a --- diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index 2fe444ac08..cbc02f1e55 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -380,7 +380,6 @@ _e_comp_cb_update(void) { E_Client *ec; Eina_List *l; - // static int doframeinfo = -1; static double rtime = 0.0; static double rlapse = 0.0; @@ -472,34 +471,6 @@ _e_comp_cb_update(void) } else { -#if 0 - if (e_comp->calc_fps) - { - double fps = 0.0, dt; - double t = ecore_time_get(); - int i, avg_range = 60; - - dt = t - e_comp->frametimes[avg_range - 1]; - - if (dt > 0.0) fps = (double)avg_range / dt; - else fps = 0.0; - - if (fps > 60.0) fps = 60.0; - if (fps < 0.0) fps = 0.0; - - for (i = avg_range; i >= 1; i--) - e_comp->frametimes[i] = e_comp->frametimes[i - 1]; - - e_comp->frametimes[0] = t; - e_comp->frameskip++; - if (e_comp->frameskip >= avg_range) - { - e_comp->frameskip = 0; - e_comp->fps = fps; - ecore_event_add(E_EVENT_COMPOSITOR_FPS_UPDATE, NULL, NULL, NULL); - } - } -#else if (e_comp->calc_fps) { double dt; @@ -524,7 +495,6 @@ _e_comp_cb_update(void) rtime = 0.0; } } -#endif } if (conf->lock_fps) {