wayland: Remove some extraneous code

This is already handled by the double_buffered_state_reset at the end.
This commit is contained in:
Jasper St. Pierre 2014-04-11 23:31:02 -07:00
parent 277879c11b
commit f5e77d7f63

View File

@ -377,12 +377,6 @@ commit_double_buffered_state (MetaWaylandSurface *surface,
g_list_foreach (surface->subsurfaces, parent_surface_committed, NULL); g_list_foreach (surface->subsurfaces, parent_surface_committed, NULL);
if (pending->buffer)
{
wl_list_remove (&pending->buffer_destroy_listener.link);
pending->buffer = NULL;
}
/* wl_surface.frame */ /* wl_surface.frame */
wl_list_insert_list (&compositor->frame_callbacks, &pending->frame_callback_list); wl_list_insert_list (&compositor->frame_callbacks, &pending->frame_callback_list);
wl_list_init (&pending->frame_callback_list); wl_list_init (&pending->frame_callback_list);