ecore/wayland: Remove attributes that are not used anymore.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 1 Nov 2013 12:28:14 +0000 (10:28 -0200)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 1 Nov 2013 12:30:29 +0000 (10:30 -0200)
Some attributes might have been useful in the past, but not anymore.
Just remove since they are not been used anywhere.

src/lib/ecore_wayland/Ecore_Wayland.h
src/lib/ecore_wayland/ecore_wl_window.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index f9b70c7..424e3db 100644 (file)
@@ -132,7 +132,7 @@ struct _Ecore_Wl_Window
    struct 
      {
         int w, h;
-     } saved, server;
+     } saved;
 
    struct 
      {
index 661e825..4c40a62 100644 (file)
@@ -212,8 +212,6 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
    switch (win->buffer_type)
      {
       case ECORE_WL_WINDOW_BUFFER_TYPE_EGL_WINDOW:
-        win->server.w = win->allocation.w;
-        win->server.h = win->allocation.h;
         break;
       case ECORE_WL_WINDOW_BUFFER_TYPE_EGL_IMAGE:
       case ECORE_WL_WINDOW_BUFFER_TYPE_SHM:
@@ -226,9 +224,6 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
              wl_surface_damage(win->surface, 0, 0, 
                                win->allocation.w, win->allocation.h);
              wl_surface_commit(win->surface);
-
-             win->server.w = win->allocation.w;
-             win->server.h = win->allocation.h;
           }
         break;
       default:
index 2bb1aab..de87aff 100644 (file)
@@ -277,14 +277,7 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
 
         if (wdata->win)
           {
-             Ecore_Wl_Window *win;
-
-             win = wdata->win;
-
              _ecore_evas_wayland_resize_edge_set(ee, ev->edges);
-
-             win->server.w = win->allocation.w;
-             win->server.h = win->allocation.h;
              ecore_wl_window_update_size(wdata->win, ev->w, ev->h);
           }
      }
index 1709c50..e0bb743 100644 (file)
@@ -325,15 +325,7 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
           evas_object_resize(wdata->frame, w, h);
 
         if (wdata->win)
-          {
-             Ecore_Wl_Window *win;
-
-             win = wdata->win;
-
-             win->server.w = win->allocation.w;
-             win->server.h = win->allocation.h;
-             ecore_wl_window_update_size(wdata->win, w, h);
-          }
+          ecore_wl_window_update_size(wdata->win, w, h);
 
         if (ee->func.fn_resize) ee->func.fn_resize(ee);
      }
index 05060a7..5542173 100644 (file)
@@ -319,15 +319,7 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
           evas_object_resize(wdata->frame, w, h);
 
         if (wdata->win)
-          {
-             Ecore_Wl_Window *win;
-
-             win = wdata->win;
-
-             win->server.w = win->allocation.w;
-             win->server.h = win->allocation.h;
-             ecore_wl_window_update_size(wdata->win, w, h);
-          }
+          ecore_wl_window_update_size(wdata->win, w, h);
 
         if (ee->func.fn_resize) ee->func.fn_resize(ee);
      }