layer: remove the unused code 20/171120/3
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:33:02 +0000 (08:33 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 27 Feb 2018 00:18:44 +0000 (09:18 +0900)
Change-Id: Ia74540bb15d775b26afca4183f169b38abe1f5db

src/tdm_layer.c

index 97e2a09..be4467e 100644 (file)
@@ -1132,7 +1132,6 @@ _tbm_layer_queue_acquirable_cb(tbm_surface_queue_h surface_queue, void *data)
        tdm_private_backend *private_backend;
        tdm_func_layer *func_layer;
        tbm_surface_h buffer = NULL;
-       tdm_private_layer_buffer *layer_buffer;
        LAYER_FUNC_ENTRY_VOID_RETURN();
 
        _pthread_mutex_lock(&private_display->lock);
@@ -1147,23 +1146,12 @@ _tbm_layer_queue_acquirable_cb(tbm_surface_queue_h surface_queue, void *data)
                /* LCOV_EXCL_STOP */
        }
 
-       layer_buffer = calloc(1, sizeof(tdm_private_layer_buffer));
-       if (!layer_buffer) {
-               /* LCOV_EXCL_START */
-               _pthread_mutex_unlock(&private_display->lock);
-               TDM_ERR("alloc failed");
-               return;
-               /* LCOV_EXCL_STOP */
-       }
-       LIST_INITHEAD(&layer_buffer->link);
-
        if (TBM_SURFACE_QUEUE_ERROR_NONE != tbm_surface_queue_acquire(private_layer->buffer_queue, &buffer) ||
                buffer == NULL) {
                /* LCOV_EXCL_START */
                TDM_ERR("layer(%p) tbm_surface_queue_acquire() failed surface:%p",
                                private_layer, buffer);
                _pthread_mutex_unlock(&private_display->lock);
-               free(layer_buffer);
                return;
                /* LCOV_EXCL_STOP */
        }