DM: remove unused function gc_init

Change-Id: I91f498b9ae98002bc86b78fce2a0836c508b3945
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:31:50 -07:00 committed by ACRN System Integration
parent 43c01f8e26
commit d19d0e26c6
2 changed files with 0 additions and 28 deletions

View File

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

View File

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