wayland_shm: Remove surface_type from surface

This has become not only a write-only variable, but also incorrectly set.

Just remove it.
This commit is contained in:
Derek Foreman 2017-11-13 14:15:45 -06:00
parent c6b0328150
commit f9ff2e4fa5
3 changed files with 0 additions and 3 deletions

View 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;

View File

@ -86,7 +86,6 @@ enum _Ecore_Wl2_Buffer_Type
typedef struct _Surface Surface;
struct _Surface
{
Ecore_Wl2_Buffer_Type type;
Outbuf *ob;
union
{

View 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;