shell/plugin: Stop implementing plugin_info()

The hook would be optional if anything called `meta_plugin_get_info()`,
except that nothing has done so for the last ten years.

It seems a bit pointless to export information that is completely
unused, in particular as we never updated it ("version 0.1"?!),
so just stop doing that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3524>
This commit is contained in:
Florian Müllner 2024-10-21 23:23:29 +02:00 committed by Marge Bot
parent 50434f0138
commit 30f99e11c1

View File

@ -210,20 +210,6 @@ gnome_shell_plugin_confirm_display_change (MetaPlugin *plugin)
_shell_wm_confirm_display_change (get_shell_wm ());
}
static const MetaPluginInfo *
gnome_shell_plugin_plugin_info (MetaPlugin *plugin)
{
static const MetaPluginInfo info = {
.name = "GNOME Shell",
.version = "0.1",
.author = "Various",
.license = "GPLv2+",
.description = "Provides GNOME Shell core functionality"
};
return &info;
}
static MetaCloseDialog *
gnome_shell_plugin_create_close_dialog (MetaPlugin *plugin,
MetaWindow *window)
@ -272,8 +258,6 @@ gnome_shell_plugin_class_init (GnomeShellPluginClass *klass)
plugin_class->confirm_display_change = gnome_shell_plugin_confirm_display_change;
plugin_class->plugin_info = gnome_shell_plugin_plugin_info;
plugin_class->create_close_dialog = gnome_shell_plugin_create_close_dialog;
plugin_class->create_inhibit_shortcuts_dialog = gnome_shell_plugin_create_inhibit_shortcuts_dialog;