From 39a8b153d5f384ebd974a2c9417a46f6bf40585f Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 6 Jan 2024 11:36:41 +0100 Subject: [PATCH] backends: Drop unused private functions Part-of: --- src/backends/meta-backend-private.h | 3 --- src/backends/meta-backend.c | 8 -------- src/backends/meta-cursor-tracker-private.h | 2 -- src/backends/meta-cursor-tracker.c | 8 -------- src/backends/meta-monitor-manager-private.h | 10 ---------- src/backends/meta-monitor-manager.c | 2 +- src/backends/meta-settings-private.h | 2 -- src/backends/meta-stage-impl-private.h | 4 ---- src/backends/meta-stage-private.h | 2 -- src/backends/meta-stage.c | 6 ------ src/backends/native/meta-backend-native-private.h | 2 -- src/backends/native/meta-kms-page-flip-private.h | 5 ----- src/backends/native/meta-kms-page-flip.c | 2 +- 13 files changed, 2 insertions(+), 54 deletions(-) diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h index 015b2b333..f0d1c9cdc 100644 --- a/src/backends/meta-backend-private.h +++ b/src/backends/meta-backend-private.h @@ -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); diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c index 6ca367784..f4bb014c9 100644 --- a/src/backends/meta-backend.c +++ b/src/backends/meta-backend.c @@ -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. diff --git a/src/backends/meta-cursor-tracker-private.h b/src/backends/meta-cursor-tracker-private.h index 381cf73d2..995cbb5a4 100644 --- a/src/backends/meta-cursor-tracker-private.h +++ b/src/backends/meta-cursor-tracker-private.h @@ -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); diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c index e29526f8a..99c4c5f3f 100644 --- a/src/backends/meta-cursor-tracker.c +++ b/src/backends/meta-cursor-tracker.c @@ -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; -} diff --git a/src/backends/meta-monitor-manager-private.h b/src/backends/meta-monitor-manager-private.h index 5f2f6846e..e14a77245 100644 --- a/src/backends/meta-monitor-manager-private.h +++ b/src/backends/meta-monitor-manager-private.h @@ -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 * diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index e4304b30d..b302d60a5 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -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; diff --git a/src/backends/meta-settings-private.h b/src/backends/meta-settings-private.h index c3768c8ac..618e9daa2 100644 --- a/src/backends/meta-settings-private.h +++ b/src/backends/meta-settings-private.h @@ -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); diff --git a/src/backends/meta-stage-impl-private.h b/src/backends/meta-stage-impl-private.h index 7f2afebc6..766c28348 100644 --- a/src/backends/meta-stage-impl-private.h +++ b/src/backends/meta-stage-impl-private.h @@ -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); diff --git a/src/backends/meta-stage-private.h b/src/backends/meta-stage-private.h index e288f92bb..e095fd3e6 100644 --- a/src/backends/meta-stage-private.h +++ b/src/backends/meta-stage-private.h @@ -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); diff --git a/src/backends/meta-stage.c b/src/backends/meta-stage.c index a532b58e5..fa164e604 100644 --- a/src/backends/meta-stage.c +++ b/src/backends/meta-stage.c @@ -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) diff --git a/src/backends/native/meta-backend-native-private.h b/src/backends/native/meta-backend-native-private.h index 5695fd324..10a246e70 100644 --- a/src/backends/native/meta-backend-native-private.h +++ b/src/backends/native/meta-backend-native-private.h @@ -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); diff --git a/src/backends/native/meta-kms-page-flip-private.h b/src/backends/native/meta-kms-page-flip-private.h index e7620dacf..2407edcc5 100644 --- a/src/backends/native/meta-kms-page-flip-private.h +++ b/src/backends/native/meta-kms-page-flip-private.h @@ -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) diff --git a/src/backends/native/meta-kms-page-flip.c b/src/backends/native/meta-kms-page-flip.c index 78bd021a4..e1392daf4 100644 --- a/src/backends/native/meta-kms-page-flip.c +++ b/src/backends/native/meta-kms-page-flip.c @@ -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) {