summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-04-10 15:01:23 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-04-10 15:01:43 -0700
commit23800a06a012209becd5b0ccaa772ef5306a2865 (patch)
tree70a052e2a590a7228315ba9dfd113f415eb3f54e /src/lib/ecore_evas/ecore_evas.c
parent664c1c8eb4051be82eb3b020ea9f37dda23b397c (diff)
ecore_evas: remove dead code.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 50eb36d..e586715 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -59,8 +59,6 @@
59EAPI Eina_Bool _ecore_evas_app_comp_sync = EINA_FALSE; 59EAPI Eina_Bool _ecore_evas_app_comp_sync = EINA_FALSE;
60EAPI int _ecore_evas_log_dom = -1; 60EAPI int _ecore_evas_log_dom = -1;
61static int _ecore_evas_init_count = 0; 61static int _ecore_evas_init_count = 0;
62static Ecore_Fd_Handler *_ecore_evas_async_events_fd = NULL;
63static Eina_Bool _ecore_evas_async_events_fd_handler(void *data, Ecore_Fd_Handler *fd_handler);
64 62
65static Ecore_Idle_Exiter *ecore_evas_idle_exiter = NULL; 63static Ecore_Idle_Exiter *ecore_evas_idle_exiter = NULL;
66static Ecore_Idle_Enterer *ecore_evas_idle_enterer = NULL; 64static Ecore_Idle_Enterer *ecore_evas_idle_enterer = NULL;
@@ -582,21 +580,6 @@ ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine)
582 }; 580 };
583} 581}
584 582
585static void
586_ecore_evas_fork_cb(void *data EINA_UNUSED)
587{
588 int fd;
589
590 if (_ecore_evas_async_events_fd)
591 ecore_main_fd_handler_del(_ecore_evas_async_events_fd);
592 fd = evas_async_events_fd_get();
593 if (fd >= 0)
594 _ecore_evas_async_events_fd =
595 ecore_main_fd_handler_add(fd, ECORE_FD_READ,
596 _ecore_evas_async_events_fd_handler, NULL,
597 NULL, NULL);
598}
599
600EAPI int 583EAPI int
601ecore_evas_init(void) 584ecore_evas_init(void)
602{ 585{
@@ -619,14 +602,6 @@ ecore_evas_init(void)
619 goto shutdown_ecore; 602 goto shutdown_ecore;
620 } 603 }
621 604
622 ecore_fork_reset_callback_add(_ecore_evas_fork_cb, NULL);
623 fd = evas_async_events_fd_get();
624 if (fd >= 0)
625 _ecore_evas_async_events_fd =
626 ecore_main_fd_handler_add(fd, ECORE_FD_READ,
627 _ecore_evas_async_events_fd_handler, NULL,
628 NULL, NULL);
629
630 ecore_evas_idle_enterer = 605 ecore_evas_idle_enterer =
631 ecore_idle_enterer_add(_ecore_evas_idle_enter, NULL); 606 ecore_idle_enterer_add(_ecore_evas_idle_enter, NULL);
632 ecore_evas_idle_exiter = 607 ecore_evas_idle_exiter =
@@ -689,10 +664,6 @@ ecore_evas_shutdown(void)
689 while (_ecore_evas_ews_shutdown()); 664 while (_ecore_evas_ews_shutdown());
690#endif 665#endif
691 _ecore_evas_engine_shutdown(); 666 _ecore_evas_engine_shutdown();
692 if (_ecore_evas_async_events_fd)
693 ecore_main_fd_handler_del(_ecore_evas_async_events_fd);
694
695 ecore_fork_reset_callback_del(_ecore_evas_fork_cb, NULL);
696 667
697 eina_log_domain_unregister(_ecore_evas_log_dom); 668 eina_log_domain_unregister(_ecore_evas_log_dom);
698 _ecore_evas_log_dom = -1; 669 _ecore_evas_log_dom = -1;
@@ -3420,14 +3391,6 @@ _ecore_evas_cb_idle_flush(void *data)
3420 return ECORE_CALLBACK_CANCEL; 3391 return ECORE_CALLBACK_CANCEL;
3421} 3392}
3422 3393
3423static Eina_Bool
3424_ecore_evas_async_events_fd_handler(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EINA_UNUSED)
3425{
3426 evas_async_events_process();
3427
3428 return ECORE_CALLBACK_RENEW;
3429}
3430
3431EAPI void 3394EAPI void
3432_ecore_evas_idle_timeout_update(Ecore_Evas *ee) 3395_ecore_evas_idle_timeout_update(Ecore_Evas *ee)
3433{ 3396{