Emotion Test: remove unuseful funtion enter_idle
authorbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Nov 2011 12:24:56 +0000 (12:24 +0000)
committerbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 10 Nov 2011 12:24:56 +0000 (12:24 +0000)
was used to show FPS before. but a long time it doesn't
do anything.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@65021 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/emotion_test_main.c

index 52e6edc..548aea2 100644 (file)
@@ -631,24 +631,6 @@ init_video_object(const char *module_filename, const char *filename)
 }
 
 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__)
 {
    const Eina_List *lst;
@@ -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();