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_ */