1
0
Fork 0

compositor: Drop unused private functions

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3492>
This commit is contained in:
Bilal Elmoussaoui 2024-01-06 10:48:28 +01:00 committed by Marge Bot
parent 77d71b5530
commit ad49ecccf7
11 changed files with 3 additions and 80 deletions

View file

@ -1,7 +0,0 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#pragma once
#include "meta/meta-background-actor.h"
MtkRegion *meta_background_actor_get_clip_region (MetaBackgroundActor *self);

View file

@ -21,10 +21,9 @@
#include "config.h"
#include "compositor/meta-background-actor-private.h"
#include "compositor/meta-background-content-private.h"
#include "compositor/meta-cullable.h"
#include "meta/meta-background-actor.h"
enum
{
@ -193,20 +192,3 @@ cullable_iface_init (MetaCullableInterface *iface)
iface->cull_unobscured = meta_background_actor_cull_unobscured;
iface->cull_redraw_clip = meta_background_actor_cull_redraw_clip;
}
/**
* meta_background_actor_get_clip_region:
* @self: a #MetaBackgroundActor
*
* Return value (transfer none): a #MtkRegion that represents the part of
* the background not obscured by other #MetaBackgroundActor or
* #MetaWindowActor objects.
*/
MtkRegion *
meta_background_actor_get_clip_region (MetaBackgroundActor *self)
{
if (!self->content)
return NULL;
return meta_background_content_get_clip_region (self->content);
}

View file

@ -21,5 +21,3 @@
#include "meta/meta-dnd.h"
MetaDnd * meta_dnd_new (MetaBackend *backend);
MetaBackend * meta_dnd_get_backend (MetaDnd *dnd);

View file

@ -117,14 +117,6 @@ meta_dnd_new (MetaBackend *backend)
return dnd;
}
MetaBackend *
meta_dnd_get_backend (MetaDnd *dnd)
{
MetaDndPrivate *priv = meta_dnd_get_instance_private (dnd);
return priv->backend;
}
#ifdef HAVE_X11
void
meta_dnd_init_xdnd (MetaX11Display *x11_display)
@ -252,8 +244,8 @@ meta_dnd_handle_xdnd_event (MetaBackend *backend,
static MetaWaylandDataDevice *
data_device_from_dnd (MetaDnd *dnd)
{
MetaBackend *backend = meta_dnd_get_backend (dnd);
MetaContext *context = meta_backend_get_context (backend);
MetaDndPrivate *priv = meta_dnd_get_instance_private (dnd);
MetaContext *context = meta_backend_get_context (priv->backend);
MetaWaylandCompositor *compositor =
meta_context_get_wayland_compositor (context);

View file

@ -44,11 +44,6 @@ struct _MetaFeedbackActorClass
ClutterActorClass parent_class;
};
ClutterActor * meta_feedback_actor_new (MetaCompositor *compositor,
float anchor_x,
float anchor_y);
void meta_feedback_actor_set_anchor (MetaFeedbackActor *actor,
float anchor_x,
float anchor_y);

View file

@ -196,29 +196,6 @@ meta_feedback_actor_init (MetaFeedbackActor *self)
clutter_actor_set_reactive (CLUTTER_ACTOR (self), FALSE);
}
/**
* meta_feedback_actor_new:
*
* Creates a new actor to draw the current drag and drop surface.
*
* Return value: the newly created background actor
*/
ClutterActor *
meta_feedback_actor_new (MetaCompositor *compositor,
float anchor_x,
float anchor_y)
{
MetaFeedbackActor *self;
self = g_object_new (META_TYPE_FEEDBACK_ACTOR,
"compositor", compositor,
"anchor-x", anchor_x,
"anchor-y", anchor_y,
NULL);
return CLUTTER_ACTOR (self);
}
void
meta_feedback_actor_set_anchor (MetaFeedbackActor *self,
float anchor_x,

View file

@ -20,5 +20,3 @@
#include "meta/types.h"
MetaLaters * meta_laters_new (MetaCompositor *compositor);
void meta_laters_free (MetaLaters *laters);

View file

@ -51,7 +51,6 @@ void meta_shaped_texture_set_viewport_dst_size (MetaShapedTexture *stex,
void meta_shaped_texture_reset_viewport_dst_size (MetaShapedTexture *stex);
void meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
int buffer_scale);
int meta_shaped_texture_get_buffer_scale (MetaShapedTexture *stex);
gboolean meta_shaped_texture_update_area (MetaShapedTexture *stex,
int x,

View file

@ -1535,14 +1535,6 @@ meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
invalidate_size (stex);
}
int
meta_shaped_texture_get_buffer_scale (MetaShapedTexture *stex)
{
g_return_val_if_fail (META_IS_SHAPED_TEXTURE (stex), 1.0);
return stex->buffer_scale;
}
/**
* meta_shaped_texture_get_width:
* @stex: A #MetaShapedTexture

View file

@ -70,8 +70,6 @@ MetaWindowActorChanges meta_window_actor_sync_actor_geometry (MetaWindowActor *s
gboolean did_placement);
void meta_window_actor_update_opacity (MetaWindowActor *self);
void meta_window_actor_mapped (MetaWindowActor *self);
void meta_window_actor_unmapped (MetaWindowActor *self);
void meta_window_actor_sync_updates_frozen (MetaWindowActor *self);
META_EXPORT_TEST

View file

@ -294,7 +294,6 @@ mutter_sources = [
'compositor/edge-resistance.c',
'compositor/edge-resistance.h',
'compositor/meta-background-actor.c',
'compositor/meta-background-actor-private.h',
'compositor/meta-background-content.c',
'compositor/meta-background-content-private.h',
'compositor/meta-background.c',