e_main: remove unused SIGUSR handler 17/182117/1
authorGwanglim Lee <gl77.lee@samsung.com>
Wed, 20 Jun 2018 10:54:41 +0000 (19:54 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 20 Jun 2018 10:54:41 +0000 (19:54 +0900)
Change-Id: I14bc5fe702d45e77223d940f1ffc2a5524000df9

src/bin/e_main.c

index 9569ea1..79b1c2a 100644 (file)
@@ -93,7 +93,6 @@ static void      _e_main_shutdown_push(int (*func)(void));
 static void      _e_main_parse_arguments(int argc, char **argv);
 static Eina_Bool _e_main_cb_signal_exit(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED);
 static Eina_Bool _e_main_cb_signal_hup(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED);
-static Eina_Bool _e_main_cb_signal_user(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev);
 static int       _e_main_dirs_init(void);
 static int       _e_main_dirs_shutdown(void);
 static int       _e_main_path_init(void);
@@ -466,13 +465,6 @@ main(int argc, char **argv)
                                "Perhaps you are out of memory?"));
         goto failed;
      }
-   if (!ecore_event_handler_add(ECORE_EVENT_SIGNAL_USER,
-                                _e_main_cb_signal_user, NULL))
-     {
-        e_error_message_show(_("Enlightenment cannot set up a USER signal handler.\n"
-                               "Perhaps you are out of memory?"));
-        goto failed;
-     }
    TSE("Ecore Event Handlers Done");
 
    TSB("Ecore_File Init");
@@ -901,24 +893,6 @@ _e_main_cb_signal_hup(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev
    return ECORE_CALLBACK_RENEW;
 }
 
-static Eina_Bool
-_e_main_cb_signal_user(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev)
-{
-   Ecore_Event_Signal_User *e = ev;
-
-   if (e->number == 1)
-     {
-//        E_Action *a = e_action_find("configuration");
-//        if ((a) && (a->func.go)) a->func.go(NULL, NULL);
-     }
-   else if (e->number == 2)
-     {
-        // comp module has its own handler for this for enabling/disabling fps debug
-     }
-   return ECORE_CALLBACK_RENEW;
-
-}
-
 static int
 _e_main_dirs_init(void)
 {