diff options
author | Rob Herring <robh@kernel.org> | 2016-04-22 12:54:14 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-04-22 12:54:14 -0500 |
commit | f4a52c35ececdb13f1ac806daccb413501a462ea (patch) | |
tree | 480202469db3a03d350bc17934da763c7c0ed42c | |
parent | cfc6f0613c16e9bc888a4e6378e5900e3bcefdfa (diff) | |
download | gbm_gralloc-f4a52c35ececdb13f1ac806daccb413501a462ea.tar.gz gbm_gralloc-f4a52c35ececdb13f1ac806daccb413501a462ea.tar.xz |
Clean-up of unused code
Remove some unused code throwing warnings.
Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r-- | gralloc_gbm.cpp | 8 | ||||
-rw-r--r-- | gralloc_gbm_priv.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/gralloc_gbm.cpp b/gralloc_gbm.cpp index eeb637a..9a7a111 100644 --- a/gralloc_gbm.cpp +++ b/gralloc_gbm.cpp @@ -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, diff --git a/gralloc_gbm_priv.h b/gralloc_gbm_priv.h index 8f52ce3..d617f63 100644 --- a/gralloc_gbm_priv.h +++ b/gralloc_gbm_priv.h @@ -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); |