Remove unused function menu_call_actions()

This commit is contained in:
Johan Malm 2025-09-25 19:24:52 +01:00 committed by John Lindgren
parent 7a5b7aa378
commit 6bbdc3c6dc
2 changed files with 0 additions and 21 deletions

View file

@ -100,18 +100,6 @@ void menu_open_root(struct menu *menu, int x, int y);
*/ */
void menu_process_cursor_motion(struct wlr_scene_node *node); void menu_process_cursor_motion(struct wlr_scene_node *node);
/**
* menu_call_actions - call actions associated with a menu node
*
* If menuitem connected to @node does not just open a submenu:
* - associated actions will be called
* - server->menu_current will be closed
* - server->menu_current will be set to NULL
*
* Returns true if actions have actually been executed
*/
bool menu_call_actions(struct wlr_scene_node *node);
/** /**
* menu_close_root- close root menu * menu_close_root- close root menu
* *

View file

@ -1544,15 +1544,6 @@ menu_process_cursor_motion(struct wlr_scene_node *node)
menu_process_item_selection(item); menu_process_item_selection(item);
} }
bool
menu_call_actions(struct wlr_scene_node *node)
{
assert(node && node->data);
struct menuitem *item = node_menuitem_from_node(node);
return menu_execute_item(item);
}
void void
menu_close_root(struct server *server) menu_close_root(struct server *server)
{ {