diff --git a/src/compositor/compositor-private.h b/src/compositor/compositor-private.h index c0414f7b3..1bda3aa90 100644 --- a/src/compositor/compositor-private.h +++ b/src/compositor/compositor-private.h @@ -159,11 +159,6 @@ void meta_compositor_show_window_menu (MetaCompositor *compositor, int x, int y); -void meta_compositor_show_window_menu_for_rect (MetaCompositor *compositor, - MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect); - /* * This function takes a 64 bit time stamp from the monotonic clock, and clamps * it to the scope of the X server clock, without losing the granularity. diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index 83e4b1452..0e1d26bc1 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -1529,18 +1529,6 @@ meta_compositor_show_window_menu (MetaCompositor *compositor, meta_plugin_manager_show_window_menu (priv->plugin_mgr, window, menu, x, y); } -void -meta_compositor_show_window_menu_for_rect (MetaCompositor *compositor, - MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect) -{ - MetaCompositorPrivate *priv = - meta_compositor_get_instance_private (compositor); - - meta_plugin_manager_show_window_menu_for_rect (priv->plugin_mgr, window, menu, rect); -} - MetaCloseDialog * meta_compositor_create_close_dialog (MetaCompositor *compositor, MetaWindow *window) diff --git a/src/compositor/meta-plugin-manager.c b/src/compositor/meta-plugin-manager.c index 2c28e1a4c..c455ccb61 100644 --- a/src/compositor/meta-plugin-manager.c +++ b/src/compositor/meta-plugin-manager.c @@ -410,22 +410,6 @@ meta_plugin_manager_show_window_menu (MetaPluginManager *plugin_mgr, klass->show_window_menu (plugin, window, menu, x, y); } -void -meta_plugin_manager_show_window_menu_for_rect (MetaPluginManager *plugin_mgr, - MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect) -{ - MetaPlugin *plugin = plugin_mgr->plugin; - MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin); - - if (!should_start_effect (plugin_mgr)) - return; - - if (klass->show_window_menu_for_rect) - klass->show_window_menu_for_rect (plugin, window, menu, rect); -} - MetaCloseDialog * meta_plugin_manager_create_close_dialog (MetaPluginManager *plugin_mgr, MetaWindow *window) diff --git a/src/compositor/meta-plugin-manager.h b/src/compositor/meta-plugin-manager.h index dd0dbaa2a..e58f64db7 100644 --- a/src/compositor/meta-plugin-manager.h +++ b/src/compositor/meta-plugin-manager.h @@ -89,11 +89,6 @@ void meta_plugin_manager_show_window_menu (MetaPluginManager *mgr, int x, int y); -void meta_plugin_manager_show_window_menu_for_rect (MetaPluginManager *mgr, - MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect); - MetaCloseDialog * meta_plugin_manager_create_close_dialog (MetaPluginManager *plugin_mgr, MetaWindow *window); diff --git a/src/core/window-private.h b/src/core/window-private.h index 6c1244d52..049712911 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -720,10 +720,6 @@ void meta_window_show_menu (MetaWindow *window, int x, int y); -void meta_window_show_menu_for_rect (MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect); - GList* meta_window_get_workspaces (MetaWindow *window); void meta_window_get_work_area_for_logical_monitor (MetaWindow *window, diff --git a/src/core/window.c b/src/core/window.c index aa886ffaf..9e1082585 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5615,15 +5615,6 @@ meta_window_show_menu (MetaWindow *window, meta_compositor_show_window_menu (window->display->compositor, window, menu, x, y); } -void -meta_window_show_menu_for_rect (MetaWindow *window, - MetaWindowMenuType menu, - MetaRectangle *rect) -{ - g_return_if_fail (!window->override_redirect); - meta_compositor_show_window_menu_for_rect (window->display->compositor, window, menu, rect); -} - void meta_window_shove_titlebar_onscreen (MetaWindow *window) {