From 30f99e11c1a39cd71804e4106de449b48252d323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 21 Oct 2024 23:23:29 +0200 Subject: [PATCH] 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: --- src/gnome-shell-plugin.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c index f978aba8d..188f58995 100644 --- a/src/gnome-shell-plugin.c +++ b/src/gnome-shell-plugin.c @@ -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;