wayland_dmabuf: Clean up unused variable

Pending is useless now that we use immediate buffer creation.
This commit is contained in:
Derek Foreman 2017-10-11 09:04:59 -05:00
parent b93319b10e
commit 159a5beb27
1 changed files with 2 additions and 4 deletions

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