backends: 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 11:36:41 +01:00 committed by Marge Bot
parent 57b59f95a6
commit 39a8b153d5
13 changed files with 2 additions and 54 deletions

View File

@ -167,7 +167,6 @@ xkb_layout_index_t meta_backend_get_keymap_layout_group (MetaBackend *backend);
gboolean meta_backend_is_lid_closed (MetaBackend *backend);
MetaPointerConstraint * meta_backend_get_client_pointer_constraint (MetaBackend *backend);
void meta_backend_set_client_pointer_constraint (MetaBackend *backend,
MetaPointerConstraint *constraint);
@ -183,8 +182,6 @@ void meta_backend_notify_keymap_changed (MetaBackend *backend);
void meta_backend_notify_keymap_layout_group_changed (MetaBackend *backend,
unsigned int locked_group);
void meta_backend_notify_ui_scaling_factor_changed (MetaBackend *backend);
META_EXPORT_TEST
void meta_backend_add_gpu (MetaBackend *backend,
MetaGpu *gpu);

View File

@ -1596,14 +1596,6 @@ meta_backend_get_default_seat (MetaBackend *backend)
return priv->default_seat;
}
MetaPointerConstraint *
meta_backend_get_client_pointer_constraint (MetaBackend *backend)
{
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
return priv->client_pointer_constraint;
}
/**
* meta_backend_set_client_pointer_constraint:
* @backend: a #MetaBackend object.

View File

@ -57,5 +57,3 @@ void meta_cursor_tracker_register_cursor_sprite (MetaCursorTracker *tracker,
void meta_cursor_tracker_unregister_cursor_sprite (MetaCursorTracker *tracker,
MetaCursorSprite *sprite);
GList * meta_cursor_tracker_peek_cursor_sprites (MetaCursorTracker *tracker);

View File

@ -570,11 +570,3 @@ meta_cursor_tracker_unregister_cursor_sprite (MetaCursorTracker *tracker,
priv->cursor_sprites = g_list_remove (priv->cursor_sprites, sprite);
}
GList *
meta_cursor_tracker_peek_cursor_sprites (MetaCursorTracker *tracker)
{
MetaCursorTrackerPrivate *priv =
meta_cursor_tracker_get_instance_private (tracker);
return priv->cursor_sprites;
}

View File

@ -329,8 +329,6 @@ void meta_monitor_manager_power_save_mode_changed (MetaMonitorMan
void meta_monitor_manager_confirm_configuration (MetaMonitorManager *manager,
gboolean ok);
gboolean meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager);
META_EXPORT_TEST
void meta_monitor_manager_read_current_state (MetaMonitorManager *manager);
@ -350,10 +348,6 @@ void meta_monitor_manager_tiled_monitor_added (MetaMonitorManager
void meta_monitor_manager_tiled_monitor_removed (MetaMonitorManager *manager,
MetaMonitor *monitor);
gboolean meta_monitor_manager_is_transform_handled (MetaMonitorManager *manager,
MetaCrtc *crtc,
MetaMonitorTransform transform);
META_EXPORT_TEST
MetaMonitorsConfig * meta_monitor_manager_ensure_configured (MetaMonitorManager *manager);
@ -408,10 +402,6 @@ MetaMonitorConfigManager *
void meta_monitor_manager_rotate_monitor (MetaMonitorManager *manager);
void meta_monitor_manager_clear_output (MetaOutput *output);
void meta_monitor_manager_clear_mode (MetaCrtcMode *mode);
void meta_monitor_manager_clear_crtc (MetaCrtc *crtc);
gboolean meta_monitor_has_aspect_as_size (MetaMonitor *monitor);
static inline MetaOutputAssignment *

View File

@ -760,7 +760,7 @@ meta_monitor_manager_apply_monitors_config (MetaMonitorManager *manager,
return TRUE;
}
gboolean
static gboolean
meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager)
{
GList *gpus;

View File

@ -57,8 +57,6 @@ META_EXPORT_TEST
gboolean meta_settings_is_experimental_feature_enabled (MetaSettings *settings,
MetaExperimentalFeature feature);
MetaExperimentalFeature meta_settings_get_experimental_features (MetaSettings *settings);
META_EXPORT_TEST
void meta_settings_override_experimental_features (MetaSettings *settings);

View File

@ -61,10 +61,6 @@ GType meta_stage_impl_get_type (void) G_GNUC_CONST;
MetaBackend * meta_stage_impl_get_backend (MetaStageImpl *stage_impl);
void meta_stage_impl_presented (MetaStageImpl *stage_impl,
CoglFrameEvent frame_event,
ClutterFrameInfo *frame_info);
void meta_stage_impl_add_onscreen_frame_info (MetaStageImpl *stage_impl,
ClutterStageView *view);

View File

@ -57,8 +57,6 @@ void meta_stage_update_cursor_overlay (MetaStage *stag
void meta_overlay_set_visible (MetaOverlay *overlay,
gboolean is_visible);
gboolean meta_overlay_is_visible (MetaOverlay *overlay);
void meta_stage_set_active (MetaStage *stage,
gboolean is_active);

View File

@ -472,12 +472,6 @@ meta_overlay_set_visible (MetaOverlay *overlay,
queue_redraw_for_overlay (overlay->stage, overlay);
}
gboolean
meta_overlay_is_visible (MetaOverlay *overlay)
{
return overlay->is_visible;
}
void
meta_stage_set_active (MetaStage *stage,
gboolean is_active)

View File

@ -25,8 +25,6 @@
#include "backends/native/meta-backend-native.h"
#include "backends/native/meta-barrier-native.h"
MetaBarrierManagerNative *meta_backend_native_get_barrier_manager (MetaBackendNative *native);
META_EXPORT_TEST
MetaDevicePool * meta_backend_native_get_device_pool (MetaBackendNative *native);

View File

@ -23,8 +23,6 @@
typedef struct _MetaKmsPageFlipData MetaKmsPageFlipData;
typedef void (* MetaPageFlipDataFeedbackFunc) (MetaKmsPageFlipData *page_flip_data);
MetaKmsPageFlipData * meta_kms_page_flip_data_new (MetaKmsImplDevice *impl_device,
MetaKmsCrtc *crtc);
@ -54,9 +52,6 @@ void meta_kms_page_flip_data_mode_set_fallback_in_impl (MetaKmsPageFlipData *pag
void meta_kms_page_flip_data_discard_in_impl (MetaKmsPageFlipData *page_flip_data,
const GError *error);
void meta_kms_page_flip_data_take_error (MetaKmsPageFlipData *page_flip_data,
GError *error);
void meta_kms_page_flip_data_make_symbolic (MetaKmsPageFlipData *page_flip_data);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaKmsPageFlipData, meta_kms_page_flip_data_unref)

View File

@ -284,7 +284,7 @@ invoke_page_flip_closure_discarded (MetaThread *thread,
page_flip_data->error);
}
void
static void
meta_kms_page_flip_data_take_error (MetaKmsPageFlipData *page_flip_data,
GError *error)
{