From 3d38f4d08e84334576f693ec6a9000e649e7d9e8 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Thu, 10 Nov 2011 12:24:56 +0000 Subject: [PATCH] Emotion Test: remove unuseful funtion enter_idle was used to show FPS before. but a long time it doesn't do anything. SVN revision: 65021 --- legacy/emotion/src/bin/emotion_test_main.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/legacy/emotion/src/bin/emotion_test_main.c b/legacy/emotion/src/bin/emotion_test_main.c index 52e6edcae7..548aea2411 100644 --- a/legacy/emotion/src/bin/emotion_test_main.c +++ b/legacy/emotion/src/bin/emotion_test_main.c @@ -630,24 +630,6 @@ init_video_object(const char *module_filename, const char *filename) evas_object_show(oe); } -static Eina_Bool -enter_idle(void *data __UNUSED__) -{ - double t; - static double pt = 0.0; - static int frames = 0; - - t = ecore_time_get(); - if (frames == 0) pt = t; - frames++; - if (frames == 100) - { -// printf("FPS: %3.3f\n", frames / (t - pt)); - frames = 0; - } - return EINA_TRUE; -} - static Eina_Bool check_positions(void *data __UNUSED__) { @@ -740,7 +722,6 @@ main(int argc, char **argv) for (; args < argc; args++) init_video_object(backend, argv[args]); - ecore_idle_enterer_add(enter_idle, NULL); ecore_animator_add(check_positions, NULL); ecore_main_loop_begin();