DM: remove unused function gc_resize

Change-Id: I82504374fed44f08d92910d0d34a02337d844fd0
Tracked-On: #3123
Signed-off-by: Ying Liu <ying2.liu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
yliu79 2019-05-22 10:26:55 -07:00 committed by ACRN System Integration
parent d153bb8664
commit e6360b9b7f
2 changed files with 0 additions and 19 deletions

View File

@ -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)
{

View File

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