summaryrefslogtreecommitdiff
path: root/legacy/emotion
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2011-11-10 12:24:56 +0000
committerBruno Dilly <bdilly@profusion.mobi>2011-11-10 12:24:56 +0000
commit3d38f4d08e84334576f693ec6a9000e649e7d9e8 (patch)
tree1e8a23f50f867bc31fbdf2ccfabb4278859b46cf /legacy/emotion
parent66f18fc49fe9b9af0a6e5bf6d5882106c3513c7e (diff)
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
Diffstat (limited to 'legacy/emotion')
-rw-r--r--legacy/emotion/src/bin/emotion_test_main.c19
1 files changed, 0 insertions, 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
@@ -631,24 +631,6 @@ init_video_object(const char *module_filename, const char *filename)
631} 631}
632 632
633static Eina_Bool 633static Eina_Bool
634enter_idle(void *data __UNUSED__)
635{
636 double t;
637 static double pt = 0.0;
638 static int frames = 0;
639
640 t = ecore_time_get();
641 if (frames == 0) pt = t;
642 frames++;
643 if (frames == 100)
644 {
645// printf("FPS: %3.3f\n", frames / (t - pt));
646 frames = 0;
647 }
648 return EINA_TRUE;
649}
650
651static Eina_Bool
652check_positions(void *data __UNUSED__) 634check_positions(void *data __UNUSED__)
653{ 635{
654 const Eina_List *lst; 636 const Eina_List *lst;
@@ -740,7 +722,6 @@ main(int argc, char **argv)
740 for (; args < argc; args++) 722 for (; args < argc; args++)
741 init_video_object(backend, argv[args]); 723 init_video_object(backend, argv[args]);
742 724
743 ecore_idle_enterer_add(enter_idle, NULL);
744 ecore_animator_add(check_positions, NULL); 725 ecore_animator_add(check_positions, NULL);
745 726
746 ecore_main_loop_begin(); 727 ecore_main_loop_begin();