Skip to content

Commit d19d0e2

Browse files
ying2liuacrnsi
authored andcommitted
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>
1 parent 43c01f8 commit d19d0e2

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

devicemodel/core/gc.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,6 @@ struct gfx_ctx {
1010
int raw;
1111
};
1212

13-
struct gfx_ctx *
14-
gc_init(int width, int height, void *fbaddr)
15-
{
16-
struct gfx_ctx *gc;
17-
struct gfx_ctx_image *gc_image;
18-
19-
gc = calloc(1, sizeof(struct gfx_ctx));
20-
assert(gc != NULL);
21-
22-
gc_image = calloc(1, sizeof(struct gfx_ctx_image));
23-
assert(gc_image != NULL);
24-
25-
gc_image->width = width;
26-
gc_image->height = height;
27-
if (fbaddr) {
28-
gc_image->data = fbaddr;
29-
gc->raw = 1;
30-
} else {
31-
gc_image->data = calloc(width * height, sizeof(uint32_t));
32-
gc->raw = 0;
33-
}
34-
35-
gc->gc_image = gc_image;
36-
37-
return gc;
38-
}
39-
4013
struct gfx_ctx_image *
4114
gc_get_image(struct gfx_ctx *gc)
4215
{

devicemodel/include/gc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ struct gfx_ctx_image {
4040
uint32_t *data;
4141
};
4242

43-
struct gfx_ctx *gc_init(int width, int height, void *fbaddr);
4443
struct gfx_ctx_image *gc_get_image(struct gfx_ctx *gc);
4544

4645
#endif /* _GC_H_ */

0 commit comments

Comments
 (0)