Remove some duplicate operations

the native surface version was set outside of the switch statement,
so we don't need to re-set it to the same thing here.
This commit is contained in:
Derek Foreman 2017-06-06 16:15:22 -05:00
parent 1f2b95ae4f
commit 52c379f4b2
1 changed files with 0 additions and 2 deletions

View File

@ -721,7 +721,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns)
if (cp->buffer->dmabuf_buffer)
{
ns->type = EVAS_NATIVE_SURFACE_WL_DMABUF;
ns->version = EVAS_NATIVE_SURFACE_VERSION;
ns->data.wl_dmabuf.attr = &cp->buffer->dmabuf_buffer->attributes;
ns->data.wl_dmabuf.resource = cp->buffer->resource;
@ -731,7 +730,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns)
else if (!cp->buffer->shm_buffer)
{
ns->type = EVAS_NATIVE_SURFACE_WL;
ns->version = EVAS_NATIVE_SURFACE_VERSION;
ns->data.wl.legacy_buffer = cp->buffer->resource;
ret = EINA_TRUE;
}