wayland_dmabuf: Clean up unused variable
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 11 Oct 2017 14:04:59 +0000 (09:04 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 12 Oct 2017 17:24:03 +0000 (12:24 -0500)
Pending is useless now that we use immediate buffer creation.

src/modules/evas/engines/wayland_shm/evas_dmabuf.c

index 0bfb580..85ccc2a 100644 (file)
@@ -63,7 +63,6 @@ struct _Dmabuf_Buffer
    Eina_Bool locked : 1;
    Eina_Bool busy : 1;
    Eina_Bool used : 1;
-   Eina_Bool pending : 1;
    Eina_Bool orphaned : 1;
 };
 
@@ -478,7 +477,7 @@ _evas_dmabuf_buffer_destroy(Dmabuf_Buffer *b)
 {
    if (!b) return;
 
-   if (b->locked || b->busy || b->pending)
+   if (b->locked || b->busy)
      {
         b->orphaned = EINA_TRUE;
         b->surface = NULL;
@@ -567,8 +566,7 @@ _evas_dmabuf_surface_wait(Dmabuf_Surface *s)
      {
         for (i = 0; i < s->nbuf; i++)
           if (!s->buffer[i]->locked &&
-              !s->buffer[i]->busy &&
-              !s->buffer[i]->pending)
+              !s->buffer[i]->busy)
             return s->buffer[i];
 
         wl_display_dispatch_pending(disp);