From 952e9c52bcdfd0e9bf14b1de05b66927a2432708 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 21 Aug 2014 18:30:17 -0400 Subject: [PATCH] surface-actor-x11: Merge a simple function inline This is a one-liner, only used in one place. --- src/compositor/meta-surface-actor-x11.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/compositor/meta-surface-actor-x11.c b/src/compositor/meta-surface-actor-x11.c index ac72fb796..73ba69e82 100644 --- a/src/compositor/meta-surface-actor-x11.c +++ b/src/compositor/meta-surface-actor-x11.c @@ -179,15 +179,6 @@ is_visible (MetaSurfaceActorX11 *self) return (priv->pixmap != None) && !priv->unredirected; } -static void -damage_area (MetaSurfaceActorX11 *self, - int x, int y, int width, int height) -{ - MetaSurfaceActorX11Private *priv = meta_surface_actor_x11_get_instance_private (self); - - cogl_texture_pixmap_x11_update_area (priv->texture, x, y, width, height); -} - static void meta_surface_actor_x11_process_damage (MetaSurfaceActor *actor, int x, int y, int width, int height) @@ -218,7 +209,7 @@ meta_surface_actor_x11_process_damage (MetaSurfaceActor *actor, if (priv->unredirected) return; - damage_area (self, x, y, width, height); + cogl_texture_pixmap_x11_update_area (priv->texture, x, y, width, height); } static void