[mutter] surface-actor: Remove some unused and useless functions



commit 9f8242658eee0445f10f6cddb822a372591444cc
Author: Robert Mader <robert mader posteo de>
Date:   Sat Aug 28 13:56:20 2021 +0200

    surface-actor: Remove some unused and useless functions
    
    These functions only added some extra redirections.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1978>

 src/compositor/meta-surface-actor.c | 51 -------------------------------------
 src/compositor/meta-surface-actor.h | 10 --------
 2 files changed, 61 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c
index 48042b227d..6d2f4cbd9a 100644
--- a/src/compositor/meta-surface-actor.c
+++ b/src/compositor/meta-surface-actor.c
@@ -645,54 +645,3 @@ meta_surface_actor_is_frozen (MetaSurfaceActor *self)
 
   return priv->frozen;
 }
-
-void
-meta_surface_actor_set_transform (MetaSurfaceActor     *self,
-                                  MetaMonitorTransform  transform)
-{
-  MetaSurfaceActorPrivate *priv =
-    meta_surface_actor_get_instance_private (self);
-
-  meta_shaped_texture_set_transform (priv->texture, transform);
-}
-
-void
-meta_surface_actor_set_viewport_src_rect (MetaSurfaceActor *self,
-                                          graphene_rect_t  *src_rect)
-{
-  MetaSurfaceActorPrivate *priv =
-    meta_surface_actor_get_instance_private (self);
-
-  meta_shaped_texture_set_viewport_src_rect (priv->texture, src_rect);
-}
-
-void
-meta_surface_actor_reset_viewport_src_rect (MetaSurfaceActor *self)
-{
-  MetaSurfaceActorPrivate *priv =
-    meta_surface_actor_get_instance_private (self);
-
-  meta_shaped_texture_reset_viewport_src_rect (priv->texture);
-}
-
-void
-meta_surface_actor_set_viewport_dst_size (MetaSurfaceActor *self,
-                                          int               dst_width,
-                                          int               dst_height)
-{
-  MetaSurfaceActorPrivate *priv =
-    meta_surface_actor_get_instance_private (self);
-
-  meta_shaped_texture_set_viewport_dst_size (priv->texture,
-                                             dst_width,
-                                             dst_height);
-}
-
-void
-meta_surface_actor_reset_viewport_dst_size (MetaSurfaceActor *self)
-{
-  MetaSurfaceActorPrivate *priv =
-    meta_surface_actor_get_instance_private (self);
-
-  meta_shaped_texture_reset_viewport_dst_size (priv->texture);
-}
diff --git a/src/compositor/meta-surface-actor.h b/src/compositor/meta-surface-actor.h
index a612510499..d3f9d7bb48 100644
--- a/src/compositor/meta-surface-actor.h
+++ b/src/compositor/meta-surface-actor.h
@@ -57,16 +57,6 @@ gboolean meta_surface_actor_is_opaque (MetaSurfaceActor *actor);
 gboolean meta_surface_actor_is_frozen (MetaSurfaceActor *actor);
 void meta_surface_actor_set_frozen (MetaSurfaceActor *actor,
                                     gboolean          frozen);
-
-void meta_surface_actor_set_transform (MetaSurfaceActor     *self,
-                                       MetaMonitorTransform  transform);
-void meta_surface_actor_set_viewport_src_rect (MetaSurfaceActor *self,
-                                               graphene_rect_t  *src_rect);
-void meta_surface_actor_reset_viewport_src_rect (MetaSurfaceActor *self);
-void meta_surface_actor_set_viewport_dst_size (MetaSurfaceActor  *self,
-                                               int                dst_width,
-                                               int                dst_height);
-void meta_surface_actor_reset_viewport_dst_size (MetaSurfaceActor *self);
 G_END_DECLS
 
 #endif /* META_SURFACE_ACTOR_PRIVATE_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]