From e884ad728d9ea0aa2cd442897cf9ab53316c5b34 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 6 Apr 2016 10:37:13 +0900 Subject: [PATCH] remove useless code Change-Id: Ida2e030e0e94364deb13d325d9d20e07dde8d0c7 --- src/wayland-tbm-server.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/wayland-tbm-server.c b/src/wayland-tbm-server.c index 54909cb..f5609d3 100755 --- a/src/wayland-tbm-server.c +++ b/src/wayland-tbm-server.c @@ -888,20 +888,6 @@ wayland_tbm_server_client_queue_export_buffer(struct wayland_tbm_client_queue *c WL_TBM_RETURN_VAL_IF_FAIL(cqueue->wl_tbm_queue != NULL, 0); WL_TBM_RETURN_VAL_IF_FAIL(surface != NULL, 0); -#if 0 - void *data = NULL; - /* return if the surface is already exported to the client on the cqueue */ - if (tbm_surface_internal_get_user_data(surface, KEY_TBM_BUFFER, &data)) { - if (data != NULL) { - tbm_buffer = (struct wayland_tbm_buffer *)data; - tbm_surface_internal_add_user_data(surface, tbm_buffer->wl_buffer, NULL); - tbm_surface_internal_set_user_data(surface, tbm_buffer->wl_buffer, (void *)data); - data = NULL; - tbm_buffer = NULL; - //return 0; - } - } -#endif wl_tbm = cqueue->wl_tbm; client = wl_resource_get_client(cqueue->wl_tbm_queue); -- 2.7.4