summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-10-15 01:12:02 -0700
committerBenjamin Otte <otte@redhat.com>2011-10-15 01:12:02 -0700
commit459b6913bfb5c09d54b6edde9c9a4b16e2a50e1c (patch)
treee201b8c36794253042e92798bc75f8b12992e811
parent4703534b55a6a87c40501d90b5dd15f36cfb195a (diff)
animation: Remove unused cache member
-rw-r--r--libgame/game-animation.c5
1 files changed, 1 insertions, 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;