diff --git a/devicemodel/core/gc.c b/devicemodel/core/gc.c index e6c7581cc..f8c0549fd 100644 --- a/devicemodel/core/gc.c +++ b/devicemodel/core/gc.c @@ -37,24 +37,6 @@ gc_init(int width, int height, void *fbaddr) return gc; } -void -gc_resize(struct gfx_ctx *gc, int width, int height) -{ - struct gfx_ctx_image *gc_image; - - gc_image = gc->gc_image; - - gc_image->width = width; - gc_image->height = height; - if (!gc->raw) { - gc_image->data = realloc(gc_image->data, - width * height * sizeof(uint32_t)); - if (gc_image->data != NULL) - memset(gc_image->data, 0, width * height * - sizeof(uint32_t)); - } -} - struct gfx_ctx_image * gc_get_image(struct gfx_ctx *gc) { diff --git a/devicemodel/include/gc.h b/devicemodel/include/gc.h index f175864d9..fc4c22386 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_resize(struct gfx_ctx *gc, int width, int height); struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc); #endif /* _GC_H_ */