wayland_shm: Remove surface_type from surface
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 13 Nov 2017 20:15:45 +0000 (14:15 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 15 Nov 2017 17:54:37 +0000 (11:54 -0600)
This has become not only a write-only variable, but also incorrectly set.

Just remove it.

src/modules/evas/engines/wayland_shm/evas_dmabuf.c
src/modules/evas/engines/wayland_shm/evas_engine.h
src/modules/evas/engines/wayland_shm/evas_outbuf.c

index def290c..041b275 100644 (file)
@@ -783,7 +783,6 @@ _evas_dmabuf_surface_create(Surface *s, int w, int h, int num_buff)
           }
      }
 
-   s->type = SURFACE_DMABUF;
    s->funcs.destroy = _evas_dmabuf_surface_destroy;
    s->funcs.reconfigure = _evas_dmabuf_surface_reconfigure;
    s->funcs.data_get = _evas_dmabuf_surface_data_get;
index 24696db..b9af228 100644 (file)
@@ -86,7 +86,6 @@ enum _Ecore_Wl2_Buffer_Type
 typedef struct _Surface Surface;
 struct _Surface
 {
-   Ecore_Wl2_Buffer_Type type;
    Outbuf *ob;
    union
      {
index 6287a9c..6732fb2 100644 (file)
@@ -16,7 +16,6 @@ _evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
 
    out = calloc(1, sizeof(*out));
    if (!out) return NULL;
-   out->type = SURFACE_EMPTY;
    out->info = info;
    out->ob = ob;