summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorDima Ryazanov <dima@gmail.com>2016-11-13 23:44:52 -0800
committerDaniel Stone <daniels@collabora.com>2016-11-16 16:08:05 +0000
commit9b1f8ef7bcafeee19d8537f34a95cf0f3c112ccc (patch)
tree76779bce8ad6d7917fcc2cc5a99e7e287f7de156 /clients
parentc0271533d012f7928169ff17c42ba25365c66eea (diff)
Get rid of the window_create_menu function
It's currently unused, and there's actually no way to use it correctly. The caller cannot free the menu that was created: - the function only returns the window, not the menu - there's no public API to destroy a menu object Signed-off-by: Dima Ryazanov <dima@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c15
-rw-r--r--clients/window.h5
2 files changed, 0 insertions, 20 deletions
diff --git a/clients/window.c b/clients/window.c
index b987f40d..443efd72 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -5470,21 +5470,6 @@ create_menu(struct display *display,
return menu;
}
-struct window *
-window_create_menu(struct display *display,
- struct input *input, uint32_t time,
- menu_func_t func, const char **entries, int count,
- void *user_data)
-{
- struct menu *menu;
- menu = create_menu(display, input, time, func, entries, count, user_data);
-
- if (menu == NULL)
- return NULL;
-
- return menu->window;
-}
-
static struct zxdg_positioner_v6 *
create_simple_positioner(struct display *display,
int x, int y, int w, int h)
diff --git a/clients/window.h b/clients/window.h
index 1ad3b4fd..1ec9eac5 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -322,11 +322,6 @@ window_has_focus(struct window *window);
typedef void (*menu_func_t)(void *data, struct input *input, int index);
-struct window *
-window_create_menu(struct display *display,
- struct input *input, uint32_t time,
- menu_func_t func, const char **entries, int count,
- void *user_data);
void
window_show_menu(struct display *display,
struct input *input, uint32_t time, struct window *parent,