remove more useless ecore_time_get's
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 2 Nov 2008 02:19:18 +0000 (02:19 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 2 Nov 2008 02:19:18 +0000 (02:19 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@37392 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_main.c
src/lib/ecore/ecore_timer.c

index caea968..09a80fb 100644 (file)
@@ -645,17 +645,12 @@ _ecore_main_loop_iterate_internal(int once_only)
               {
                  for (;;)
                    {
-                      double cur_time, t;
-
                       if (!_ecore_idler_call()) goto start_loop;
                       if (_ecore_event_exist()) break;
                       if (_ecore_main_select(0.0) > 0) have_event = 1;
                       if (_ecore_main_win32_message(0.0) > 0) have_msg = 1;
                       if (_ecore_signal_count_get() > 0) have_signal = 1;
                       if (have_event || have_signal || have_msg) break;
-                      cur_time = ecore_time_get();
-                      t = ecore_time_get() - cur_time;
-                      if (t >= next_time) break;
                       next_time = _ecore_timer_next_get();
                       if (next_time < 0) goto start_loop;
                       if (do_quit) break;
index 93fce30..c270b7f 100644 (file)
@@ -289,7 +289,7 @@ _ecore_timer_next_get(void)
    Ecore_Timer *timer;
    
    if (!timers) return -1;
-   now = ecore_time_get();
+   now = ecore_loop_time_get();
    timer = (Ecore_Timer *)timers;
    while ((timer) && ((timer->delete_me) || (timer->just_added)))
      timer = (Ecore_Timer *)((Ecore_List2 *)timer)->next;