wayland-surface: remove unused damage array

There was a GArray member named damage that wasn't being used which this
patch removes.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Robert Bragg 2012-01-09 19:09:43 +00:00 committed by Neil Roberts
parent 3839cf13a2
commit c7e10024d8

View File

@ -73,7 +73,6 @@ struct _ClutterWaylandSurfacePrivate
CoglTexture2D *buffer; CoglTexture2D *buffer;
int width, height; int width, height;
CoglPipeline *pipeline; CoglPipeline *pipeline;
GArray *damage;
}; };
G_DEFINE_TYPE (ClutterWaylandSurface, G_DEFINE_TYPE (ClutterWaylandSurface,
@ -163,7 +162,6 @@ clutter_wayland_surface_init (ClutterWaylandSurface *self)
priv->surface = NULL; priv->surface = NULL;
priv->width = 0; priv->width = 0;
priv->height = 0; priv->height = 0;
priv->damage = g_array_new (FALSE, FALSE, sizeof (int));
self->priv = priv; self->priv = priv;
@ -176,12 +174,6 @@ clutter_wayland_surface_dispose (GObject *object)
ClutterWaylandSurface *self = CLUTTER_WAYLAND_SURFACE (object); ClutterWaylandSurface *self = CLUTTER_WAYLAND_SURFACE (object);
ClutterWaylandSurfacePrivate *priv = self->priv; ClutterWaylandSurfacePrivate *priv = self->priv;
if (priv->damage)
{
g_array_free (priv->damage, TRUE);
priv->damage = NULL;
}
G_OBJECT_CLASS (clutter_wayland_surface_parent_class)->dispose (object); G_OBJECT_CLASS (clutter_wayland_surface_parent_class)->dispose (object);
} }