From d153bb86640a654e53163331a5c242fba8454a88 Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:25:53 -0700 Subject: [PATCH] DM: remove unused function gc_set_fbaddr Change-Id: I005edc5f69fcd3b4969c7c7d75f633d2219acbe5 Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/gc.c | 9 --------- devicemodel/include/gc.h | 1 - 2 files changed, 10 deletions(-) diff --git a/devicemodel/core/gc.c b/devicemodel/core/gc.c index 107348ba2..e6c7581cc 100644 --- a/devicemodel/core/gc.c +++ b/devicemodel/core/gc.c @@ -37,15 +37,6 @@ gc_init(int width, int height, void *fbaddr) return gc; } -void -gc_set_fbaddr(struct gfx_ctx *gc, void *fbaddr) -{ - gc->raw = 1; - if (gc->gc_image->data && gc->gc_image->data != fbaddr) - free(gc->gc_image->data); - gc->gc_image->data = fbaddr; -} - void gc_resize(struct gfx_ctx *gc, int width, int height) { diff --git a/devicemodel/include/gc.h b/devicemodel/include/gc.h index f80e7064e..f175864d9 100644 --- a/devicemodel/include/gc.h +++ b/devicemodel/include/gc.h @@ -41,7 +41,6 @@ struct gfx_ctx_image { }; struct gfx_ctx *gc_init(int width, int height, void *fbaddr); -void gc_set_fbaddr(struct gfx_ctx *gc, void *fbaddr); void gc_resize(struct gfx_ctx *gc, int width, int height); struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc);