]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Remove unused function menu_call_actions()
authorJohan Malm <jgm323@gmail.com>
Thu, 25 Sep 2025 18:24:52 +0000 (19:24 +0100)
committerJohn Lindgren <john@jlindgren.net>
Fri, 26 Sep 2025 14:41:21 +0000 (10:41 -0400)
include/menu/menu.h
src/menu/menu.c

index a4d236d61148bb7f0a83f6244af2d336e894577a..f65ff9a361fb5251960454aec2d5191c72429199 100644 (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);
 
-/**
- * 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
  *
index 455035ec80b3daada42e08890b205ecee3cd1d2e..fca755b22810500f08deb1ebe5a6a536a2528f34 100644 (file)
@@ -1544,15 +1544,6 @@ menu_process_cursor_motion(struct wlr_scene_node *node)
        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
 menu_close_root(struct server *server)
 {