e_comp_wl: remove the unused surface signals 01/272701/1 accepted/tizen/unified/20220323.062712 submit/tizen/20220323.020128
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 22 Mar 2022 11:09:25 +0000 (20:09 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 23 Mar 2022 02:03:17 +0000 (11:03 +0900)
Change-Id: I7f0a40411a4de6427b0c922b9f1bde4f3f72b875

src/bin/e_comp_wl.c
src/bin/e_comp_wl.h

index 8841618..7d3790d 100644 (file)
@@ -3316,9 +3316,6 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    DBG("\tUsing Client: %p", ec);
    wl_resource_set_user_data(res, ec);
 
-   /* emit surface create signal */
-   wl_signal_emit(&e_comp_wl->signals.surface.create, res);
-
    TRACE_DS_END();
 }
 
@@ -4187,11 +4184,6 @@ _e_comp_wl_compositor_create(void)
    /* set wayland display environment variable */
    e_env_set("WAYLAND_DISPLAY", name);
 
-   /* initialize compositor signals */
-   wl_signal_init(&wl_cdata->signals.surface.create);
-   wl_signal_init(&wl_cdata->signals.surface.activate);
-   wl_signal_init(&wl_cdata->signals.surface.kill);
-
    /* wl_cdata->output.transform = WL_OUTPUT_TRANSFORM_NORMAL; */
    /* wl_cdata->output.scale = e_scale; */
 
@@ -4358,17 +4350,6 @@ e_comp_wl_deferred_job(void)
    ecore_idle_enterer_add(_e_comp_wl_gl_idle, NULL);
 }
 
-/**
- * Get the signal that is fired for the creation of a Wayland surface.
- *
- * @returns the corresponding Wayland signal
- */
-EINTERN struct wl_signal
-e_comp_wl_surface_create_signal_get(void)
-{
-   return e_comp_wl->signals.surface.create;
-}
-
 /* internal functions */
 EINTERN void
 e_comp_wl_shutdown(void)
index 27676a4..909ffee 100644 (file)
@@ -205,30 +205,6 @@ struct _E_Comp_Wl_Data
 
    struct
      {
-        struct
-          {
-             struct wl_signal create;
-             struct wl_signal activate;
-             struct wl_signal kill;
-          } surface;
-        /* NB: At the moment, we don't need these */
-        /*      struct wl_signal destroy; */
-        /*      struct wl_signal activate; */
-        /*      struct wl_signal transform; */
-        /*      struct wl_signal kill; */
-        /*      struct wl_signal idle; */
-        /*      struct wl_signal wake; */
-        /*      struct wl_signal session; */
-        /*      struct  */
-        /*        { */
-        /*           struct wl_signal created; */
-        /*           struct wl_signal destroyed; */
-        /*           struct wl_signal moved; */
-        /*        } seat, output; */
-     } signals;
-
-   struct
-     {
         Eina_List *resources;
         Eina_List *focused;
         Eina_Bool enabled : 1;
@@ -570,7 +546,6 @@ E_API Eina_Bool e_comp_wl_surface_commit(E_Client *ec);
 E_API void e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer);
 EINTERN E_Comp_Wl_Buffer *e_comp_wl_buffer_get(struct wl_resource *resource, E_Client *ec);
 
-EINTERN struct wl_signal e_comp_wl_surface_create_signal_get(void);
 E_API Eina_Bool e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform);
 E_API void e_comp_wl_output_remove(const char *id);