OSDN Git Service

Clean-up of unused code
authorRob Herring <robh@kernel.org>
Fri, 22 Apr 2016 17:54:14 +0000 (12:54 -0500)
committerRob Herring <robh@kernel.org>
Fri, 22 Apr 2016 17:54:14 +0000 (12:54 -0500)
Remove some unused code throwing warnings.

Signed-off-by: Rob Herring <robh@kernel.org>
gralloc_gbm.cpp
gralloc_gbm_priv.h

index eeb637a..9a7a111 100644 (file)
@@ -115,7 +115,6 @@ static struct gralloc_gbm_bo_t *gbm_import(struct gbm_device *gbm,
        struct gralloc_gbm_bo_t *buf;
        struct gbm_import_fd_data data;
        int format = get_gbm_format(handle->format);
-       int usage = get_pipe_bind(handle->usage);
 
        if (handle->prime_fd < 0)
                return NULL;
@@ -435,13 +434,6 @@ struct gbm_bo *gralloc_gbm_bo_to_gbm_bo(struct gralloc_gbm_bo_t *_bo)
 }
 
 /*
- * Query YUV component offsets for a buffer handle
- */
-void gralloc_gbm_resolve_format(buffer_handle_t _handle,
-       uint32_t *pitches, uint32_t *offsets, uint32_t *handles)
-{}
-
-/*
  * Lock a bo.  XXX thread-safety?
  */
 int gralloc_gbm_bo_lock(struct gralloc_gbm_bo_t *bo,
index 8f52ce3..d617f63 100644 (file)
@@ -45,9 +45,6 @@ void gralloc_gbm_bo_decref(struct gralloc_gbm_bo_t *bo);
 struct gralloc_gbm_bo_t *gralloc_gbm_bo_from_handle(buffer_handle_t handle);
 buffer_handle_t gralloc_gbm_bo_get_handle(struct gralloc_gbm_bo_t *bo);
 int gralloc_gbm_get_gem_handle(buffer_handle_t handle);
-void gralloc_gbm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint32_t *handles);
-//unsigned int planes_for_format(struct gralloc_gbm_t *gbm, int hal_format);
-
 struct gbm_bo *gralloc_gbm_bo_to_gbm_bo(struct gralloc_gbm_bo_t *_bo);
 
 int gralloc_gbm_bo_lock(struct gralloc_gbm_bo_t *bo, int x, int y, int w, int h, int enable_write, void **addr);