From d19d0e26c64267eb74a863ccbe9795255c62eaf2 Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:31:50 -0700 Subject: [PATCH] DM: remove unused function gc_init Change-Id: I91f498b9ae98002bc86b78fce2a0836c508b3945 Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/gc.c | 27 --------------------------- devicemodel/include/gc.h | 1 - 2 files changed, 28 deletions(-) diff --git a/devicemodel/core/gc.c b/devicemodel/core/gc.c index f8c0549fd..792b48f3a 100644 --- a/devicemodel/core/gc.c +++ b/devicemodel/core/gc.c @@ -10,33 +10,6 @@ struct gfx_ctx { int raw; }; -struct gfx_ctx * -gc_init(int width, int height, void *fbaddr) -{ - struct gfx_ctx *gc; - struct gfx_ctx_image *gc_image; - - gc = calloc(1, sizeof(struct gfx_ctx)); - assert(gc != NULL); - - gc_image = calloc(1, sizeof(struct gfx_ctx_image)); - assert(gc_image != NULL); - - gc_image->width = width; - gc_image->height = height; - if (fbaddr) { - gc_image->data = fbaddr; - gc->raw = 1; - } else { - gc_image->data = calloc(width * height, sizeof(uint32_t)); - gc->raw = 0; - } - - gc->gc_image = gc_image; - - return gc; -} - struct gfx_ctx_image * gc_get_image(struct gfx_ctx *gc) { diff --git a/devicemodel/include/gc.h b/devicemodel/include/gc.h index fc4c22386..061bf98b5 100644 --- a/devicemodel/include/gc.h +++ b/devicemodel/include/gc.h @@ -40,7 +40,6 @@ struct gfx_ctx_image { uint32_t *data; }; -struct gfx_ctx *gc_init(int width, int height, void *fbaddr); struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc); #endif /* _GC_H_ */