From 459b6913bfb5c09d54b6edde9c9a4b16e2a50e1c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 15 Oct 2011 01:12:02 -0700 Subject: animation: Remove unused cache member --- libgame/game-animation.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libgame/game-animation.c b/libgame/game-animation.c index 97908cc..3d88497 100644 --- a/libgame/game-animation.c +++ b/libgame/game-animation.c @@ -31,7 +31,6 @@ enum { typedef struct { cairo_surface_t * surface; - cairo_pattern_t * cache; guint duration; } GameAnimationFrame; static GameGraphicClass *parent_class = NULL; @@ -84,7 +83,7 @@ game_animation_start (GameAnimation *anim) static void game_animation_add_image (GameAnimation *anim, cairo_surface_t *surface, guint duration) { - GameAnimationFrame frame = { surface, NULL, duration }; + GameAnimationFrame frame = { surface, duration }; g_array_append_val (anim->frames, frame); if (anim->frames->len == 1) @@ -119,8 +118,6 @@ game_animation_dispose (GObject *object) for (i = 0; i < anim->frames->len; i++) { frame = &g_array_index(anim->frames, GameAnimationFrame, i); cairo_surface_destroy (frame->surface); - if (frame->cache) - cairo_pattern_destroy (frame->cache); } g_array_free (anim->frames, TRUE); anim->frames = NULL; -- cgit v1.2.3