From 021c1dd7fa24dda2e2abf2818c98620606a7f97c Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sun, 22 Aug 2021 13:35:19 +0200 Subject: [PATCH] surface-actor: Remove get_image() function It is unused and removing it allows us some further cleanups. Part-of: --- src/compositor/meta-surface-actor.c | 25 ------------------------- src/compositor/meta-surface-actor.h | 3 --- 2 files changed, 28 deletions(-) diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c index 6d2f4cbd9..31442b404 100644 --- a/src/compositor/meta-surface-actor.c +++ b/src/compositor/meta-surface-actor.c @@ -373,31 +373,6 @@ meta_surface_actor_init (MetaSurfaceActor *self) CLUTTER_REQUEST_CONTENT_SIZE); } -/** - * meta_surface_actor_get_image: - * @self: A #MetaSurfaceActor - * @clip: (nullable): A clipping rectangle. The clip region is in - * the same coordinate space as the contents preferred size. - * For a shaped texture of a wl_surface, this means surface - * coordinate space. If NULL, the whole content will be used. - * - * Get the image from the texture content. The resulting size of - * the returned image may be different from the preferred size of - * the shaped texture content. - * - * Returns: (nullable) (transfer full): a new cairo surface to be freed - * with cairo_surface_destroy(). - */ -cairo_surface_t * -meta_surface_actor_get_image (MetaSurfaceActor *self, - cairo_rectangle_int_t *clip) -{ - MetaSurfaceActorPrivate *priv = - meta_surface_actor_get_instance_private (self); - - return meta_shaped_texture_get_image (priv->texture, clip); -} - MetaShapedTexture * meta_surface_actor_get_texture (MetaSurfaceActor *self) { diff --git a/src/compositor/meta-surface-actor.h b/src/compositor/meta-surface-actor.h index d3f9d7bb4..f69cb1527 100644 --- a/src/compositor/meta-surface-actor.h +++ b/src/compositor/meta-surface-actor.h @@ -27,9 +27,6 @@ struct _MetaSurfaceActorClass gboolean (* is_opaque) (MetaSurfaceActor *actor); }; -cairo_surface_t *meta_surface_actor_get_image (MetaSurfaceActor *self, - cairo_rectangle_int_t *clip); - MetaShapedTexture *meta_surface_actor_get_texture (MetaSurfaceActor *self); void meta_surface_actor_update_area (MetaSurfaceActor *self,