compositor: Remove plugin_info() vfunc

Nothing has called it since commit 4fdbb466e1 ten years ago, so
drop the entire thing.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4104>
This commit is contained in:
Florian Müllner
2024-10-21 23:41:00 +02:00
parent 2a6bee224c
commit 7f624800bf
2 changed files with 0 additions and 45 deletions

View File

@ -64,17 +64,6 @@ meta_plugin_init (MetaPlugin *self)
{ {
} }
const MetaPluginInfo *
meta_plugin_get_info (MetaPlugin *plugin)
{
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
if (klass && klass->plugin_info)
return klass->plugin_info (plugin);
return NULL;
}
#ifdef HAVE_X11 #ifdef HAVE_X11
gboolean gboolean
_meta_plugin_xevent_filter (MetaPlugin *plugin, _meta_plugin_xevent_filter (MetaPlugin *plugin,

View File

@ -35,8 +35,6 @@
META_EXPORT META_EXPORT
G_DECLARE_DERIVABLE_TYPE (MetaPlugin, meta_plugin, META, PLUGIN, GObject) G_DECLARE_DERIVABLE_TYPE (MetaPlugin, meta_plugin, META, PLUGIN, GObject)
typedef struct _MetaPluginInfo MetaPluginInfo;
/* Allows us to keep the xevent_filter vfunc even when building Mutter without X11 */ /* Allows us to keep the xevent_filter vfunc even when building Mutter without X11 */
typedef union _XEvent XEvent; typedef union _XEvent XEvent;
@ -56,8 +54,6 @@ typedef union _XEvent XEvent;
* effect needs to be killed prematurely * effect needs to be killed prematurely
* @xevent_filter: virtual function called when handling each event * @xevent_filter: virtual function called when handling each event
* @keybinding_filter: virtual function called when handling each keybinding * @keybinding_filter: virtual function called when handling each keybinding
* @plugin_info: virtual function that returns information about the
* #MetaPlugin
*/ */
struct _MetaPluginClass struct _MetaPluginClass
{ {
@ -207,16 +203,6 @@ struct _MetaPluginClass
*/ */
void (*confirm_display_change) (MetaPlugin *plugin); void (*confirm_display_change) (MetaPlugin *plugin);
/**
* MetaPluginClass::plugin_info:
* @plugin: a #MetaPlugin
*
* Virtual function that returns information about the #MetaPlugin.
*
* Returns: a #MetaPluginInfo.
*/
const MetaPluginInfo * (*plugin_info) (MetaPlugin *plugin);
/** /**
* MetaPluginClass::create_close_dialog: * MetaPluginClass::create_close_dialog:
* @plugin: a #MetaPlugin * @plugin: a #MetaPlugin
@ -254,26 +240,6 @@ struct _MetaPluginClass
void (*locate_pointer) (MetaPlugin *plugin); void (*locate_pointer) (MetaPlugin *plugin);
}; };
/**
* MetaPluginInfo:
* @name: name of the plugin
* @version: version of the plugin
* @author: author of the plugin
* @license: license of the plugin
* @description: description of the plugin
*/
struct _MetaPluginInfo
{
const gchar *name;
const gchar *version;
const gchar *author;
const gchar *license;
const gchar *description;
};
META_EXPORT
const MetaPluginInfo * meta_plugin_get_info (MetaPlugin *plugin);
/* /*
* Convenience macro to set up the plugin type. Based on GEdit. * Convenience macro to set up the plugin type. Based on GEdit.
*/ */