meta: Remove meta_monitor_manager_get()

It has no more users and shouldn't be used.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
This commit is contained in:
Jonas Ådahl 2022-05-27 19:49:38 +02:00 committed by Robert Mader
parent 82abee5ad7
commit aa2a663380
2 changed files with 0 additions and 18 deletions

View File

@ -3102,21 +3102,6 @@ initialize_dbus_interface (MetaMonitorManager *manager)
g_object_unref); g_object_unref);
} }
/**
* meta_monitor_manager_get:
*
* Accessor for the singleton MetaMonitorManager.
*
* Returns: (transfer none): The only #MetaMonitorManager there is.
*/
MetaMonitorManager *
meta_monitor_manager_get (void)
{
MetaBackend *backend = meta_get_backend ();
return meta_backend_get_monitor_manager (backend);
}
/** /**
* meta_monitor_manager_get_num_logical_monitors: * meta_monitor_manager_get_num_logical_monitors:
* @manager: A #MetaMonitorManager object * @manager: A #MetaMonitorManager object

View File

@ -39,9 +39,6 @@ typedef struct _MetaMonitorManager MetaMonitorManager;
META_EXPORT META_EXPORT
GType meta_monitor_manager_get_type (void); GType meta_monitor_manager_get_type (void);
META_EXPORT
MetaMonitorManager *meta_monitor_manager_get (void);
META_EXPORT META_EXPORT
gint meta_monitor_manager_get_monitor_for_connector (MetaMonitorManager *manager, gint meta_monitor_manager_get_monitor_for_connector (MetaMonitorManager *manager,
const char *connector); const char *connector);