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);