discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7e0efcc508bb8f31841fda3c2263d81a6087139e

commit 7e0efcc508bb8f31841fda3c2263d81a6087139e
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jan 27 16:06:25 2014 -0500

    remove e_main idler api
    
    this was pretty old/legacy and looked like it would fall over pretty 
easily. there's no users and I see no use for it, so it goes bye bye
    
    removals: e_main_idler_before* api
---
 src/bin/e.h      | 10 ----------
 src/bin/e_main.c | 40 ----------------------------------------
 2 files changed, 50 deletions(-)

diff --git a/src/bin/e.h b/src/bin/e.h
index 538649d..296f0bd 100644
--- a/src/bin/e.h
+++ b/src/bin/e.h
@@ -272,18 +272,8 @@ typedef struct _E_Rect         E_Rect;
 # undef E_TYPEDEFS
 # include "e_includes.h"
 
-EAPI E_Before_Idler *e_main_idler_before_add(int (*func)(void *data), void 
*data, int once);
-EAPI void            e_main_idler_before_del(E_Before_Idler *eb);
 EAPI double          e_main_ts(const char *str);
 
-struct _E_Before_Idler
-{
-   int       (*func)(void *data);
-   void     *data;
-   Eina_Bool once : 1;
-   Eina_Bool delete_me : 1;
-};
-
 struct _E_Rect
 {
    int x, y, w, h;
diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index c7a6ba4..19ba829 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -95,7 +95,6 @@ static jmp_buf x_fatal_buff;
 static int _e_main_lvl = 0;
 static int(*_e_main_shutdown_func[MAX_LEVEL]) (void);
 
-static Eina_List *_idle_before_list = NULL;
 static Ecore_Idle_Enterer *_idle_before = NULL;
 static Ecore_Idle_Enterer *_idle_after = NULL;
 static Ecore_Idle_Enterer *_idle_flush = NULL;
@@ -1003,26 +1002,6 @@ main(int argc, char **argv)
    return 0;
 }
 
-/* FIXME: make safe to delete within a callback */
-EAPI E_Before_Idler *
-e_main_idler_before_add(int (*func)(void *data), void *data, int once)
-{
-   E_Before_Idler *eb;
-
-   eb = calloc(1, sizeof(E_Before_Idler));
-   eb->func = func;
-   eb->data = data;
-   eb->once = once;
-   _idle_before_list = eina_list_append(_idle_before_list, eb);
-   return eb;
-}
-
-EAPI void
-e_main_idler_before_del(E_Before_Idler *eb)
-{
-   eb->delete_me = 1;
-}
-
 EAPI double
 e_main_ts(const char *str)
 {
@@ -1687,28 +1666,9 @@ _e_main_modules_load(Eina_Bool safe_mode)
 static Eina_Bool
 _e_main_cb_idle_before(void *data __UNUSED__)
 {
-   Eina_List *l, *pl;
-   E_Before_Idler *eb;
-
    e_menu_idler_before();
    e_client_idler_before();
    e_pointer_idler_before();
-   EINA_LIST_FOREACH(_idle_before_list, l, eb)
-     {
-        if (!eb->delete_me)
-          {
-             if (!eb->func(eb->data)) eb->delete_me = 1;
-          }
-     }
-   EINA_LIST_FOREACH_SAFE(_idle_before_list, pl, l, eb)
-     {
-        if ((eb->once) || (eb->delete_me))
-          {
-             _idle_before_list =
-               eina_list_remove_list(_idle_before_list, pl);
-             free(eb);
-          }
-     }
    edje_thaw();
    return ECORE_CALLBACK_RENEW;
 }

-- 


Reply via email to